I need a recursive file delete for cleaning up after a JUnit test.
There is one in Commons IO (org.apache.commons.io):

  FileUtils.deleteDirectory(File directory)

I wonder whether I should use org.apache.commons.io as a new
jar added to lib or arrange a libtest for jars only used by
JUnit tests, or write yet another recursive delete and put
it in src/test/org/apache/nutch/util.

If org.apache.commons.io were included, then ndfs/DF.java could
almost be replaced by FileSystemUtils.freeSpace(path), but DF
also reports disk space capacity.

Paul

Reply via email to