@@ -0,0 +1,894 @@
+package interdroid.util;%0A%0Aimport java.io.File;%0A%0A/**%0A * A utility class for dealing with file systems.%0A *%0A * @author nick &lt;palmer@cs.vu.nl&gt;%0A *%0A */%0Apublic final class FSUtil %7B%0A%0A%09/**%0A%09 * Remove a directory and all of the contents.%0A%09 * @param directory the directory to remove%0A%09 * @return true if it was deleted.%0A%09 */%0A%09public static boolean removeDirectory(File directory) %7B%0A%0A%09%09if (directory == null) %7B%0A%09%09%09return false;%0A%09%09%7D%0A%09%09if (!directory.exists()) %7B%0A%09%09%09return true;%0A%09%09%7D%0A%09%09if (!directory.isDirectory()) %7B%0A%09%09%09return false;%0A%09%09%7D%0A%0A%09%09String%5B%5D list = directory.list();%0A%0A%09%09if (list != null) %7B%0A%09%09%09for (int i = 0; i %3C list.length; i++) %7B%0A%09%09%09%09File entry = new File(directory, list%5Bi%5D);%0A%0A%09%09%09%09if (entry.isDirectory()) %7B%0A%09%09%09%09%09if (!removeDirectory(entry)) %7B%0A%09%09%09%09%09%09return false;%0A%09%09%09%09%09%7D%0A%09%09%09%09%7D else %7B%0A%09%09%09%09%09if (!entry.delete()) %7B%0A%09%09%09%09%09%09return false;%0A%09%09%09%09%09%7D%0A%09%09%09%09%7D%0A%09%09%09%7D%0A%09%09%7D%0A%0A%09%09return directory.delete();%0A%09%7D%0A%0A%7D%0A

Add new FSUtil class.