Subject: Re: afpd tools
From: wesley.craig@umich.edu
Date: Tue Feb 22 1994 - 10:28:58 EST
> From: Charles Clark <cmclark@umich.edu>
> To: asty@cr2a.fr (Patrick Asty)
> To delete a directory, you just can do "rm -r" on the directory.
Actually, it would be better to make afprmdir a script like
#!/bin/sh
if [ -d "$1/.AppleDouble ]; then
if [ -f "$1/.AppleDouble/.Parent" ]; then
rm "$1/.AppleDouble/.Parent"
fi
rmdir "$1/.AppleDouble"
fi
rmdir "$1"
but with good argument processing. This way, you get the correct error
messages, e.g. when the directory isn't empty, you don't merrily remove
everything anyway.
:wes
This archive was generated by hypermail 2b28 : Sat Dec 18 1999 - 16:20:51 EST