Hello again,
I have finally completed my --directory (-d) feature, like the FreeBSD one.
The directory option deletes a directory only if the directory in question is
empty. This is a safer alternative to the recursive option is some cases where
you don't want to delete unempty directories.
I have documented the features. Although I am not the best technical writer, I
hope that what I have done is adequate. One thing that I have neglected to do,
intentionally, is to write an automated test. I am not skilled enough or
confident enough in my Perl or shell scripting ability to write such a test.
I would love to hear what I could have done better, or possibly what I have
done wrong. Any comments on my code are very much appreciated. That is a big
part of why I am doing this is to become a better programmer.
Thank you, and with out further ado, here is the patch.