Recursive deletion like this way is pretty exhaustic, I feel... We have to keep track of all the directories... Even after we delete all the contents inside a directory, we need to get back to its parent directory and delete the original directory. If the directories are located in a very depth way, it's more exhaustic...
Kind of exhaustic depth-first search...
I'm wondering if there is any other way to accomplish somkiat's requirements...
Well, recursion isn't really hard, once you understand it. And every
Java developer should But meanwhile...
Depending on the operating system, you could also use the system utilities; something like this for UNIX or LInux:
[ October 13, 2004: Message edited by: Ian Darwin ]