Example #1
0
 /**
  * Recursively deletes the contents of the specified directory, and finally wipes out the
  * directory itself. For each file that cannot be deleted a warning log will be issued.
  *
  * @param directory Directory to delete
  * @throws IOException
  * @returns true if the directory could be deleted, false otherwise
  */
 public static boolean delete(File directory) throws IOException {
   emptyDirectory(directory);
   return directory.delete();
 }