org.das2.util
Class FileUtil

java.lang.Object
  extended by org.das2.util.FileUtil

public class FileUtil
extends java.lang.Object

static utility methods. introduced Jul 28, 2008.


Method Summary
static boolean deleteFileTree(java.io.File root)
          deletes all files and folders below root, and root, just as "rm -r" would.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

deleteFileTree

public static boolean deleteFileTree(java.io.File root)
                              throws java.lang.IllegalArgumentException
deletes all files and folders below root, and root, just as "rm -r" would. TODO: check links

Returns:
true if the operation was successful.
Throws:
java.lang.IllegalArgumentException - if it is unable to delete a file