Using Python's built-in defaultdict we can easily define a tree data structure:
def tree(): return defaultdict(tree)
That's it!
#! /bin/tcsh -f | |
set i=1 | |
while { i <= $#argv } | |
@ i = $i + 1 | |
if ( -d $argv[$i] ) then | |
rm -R $argv[$i] | |
else | |
echo Das $i. Argument ist kein Verzeichnis. | |
endif |
Using Python's built-in defaultdict we can easily define a tree data structure:
def tree(): return defaultdict(tree)
That's it!