DZone voters are special people. Be special. Login and vote now.
By onyxbits
via onyxbits.de
Published: Nov 17 2008 / 14:00
Ever wanted to delete a directory tree in Java on a POSIX system? Funny thing: There is no safe way to do it. Java does not yet provide a way to figure out whether or not a File object is a softlink and if your directory contains one of these, pointing outside of the intended tree, you are screwed.
Enter the wonderful world of JNI to work around this problem, till Dolphin comes around.



Add your comment