Link Details

Link 134125 thumbnail
User 354481 avatar

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.
  • 10
  • 0
  • 1073
  • 302

Add your comment


Html tags not supported. Reply is editable for 5 minutes. Use [code lang="java|ruby|sql|css|xml"][/code] to post code snippets.

Voters For This Link (10)



Voters Against This Link (0)