List of utility methods to do Delete File Recursively
void | deleteRecursively(File file) delete Recursively deleteRecursively(file, false); |
boolean | deleteRecursively(File file) delete Recursively boolean success = true; if (file.isDirectory()) { success = deleteDirectoryContents(file); return file.delete() && success; |
void | deleteRecursively(File file) Delete the file recursively. if (file.isDirectory()) { deleteDirectoryContents(file); if (file.exists() && !file.delete()) { throw new IOException("Failed to delete " + file); |
void | deleteRecursively(File file) delete Recursively if (file == null) { return; if (file.isDirectory() && !isSymlink(file)) { IOException savedIOException = null; for (File child : listFilesSafely(file)) { try { deleteRecursively(child); ... |
void | deleteRecursively(File file) Delete a file/directory, recursively. if (file.exists()) { if (file.isDirectory()) { File[] files = file.listFiles(); for (int i = 0; i < files.length; ++i) { deleteRecursively(files[i]); if (file.exists() && !file.delete()) { ... |
void | deleteRecursively(File file) delete Recursively if (file.exists()) { File[] files = file.listFiles(); if (files != null) { for (int i = 0; i < files.length; i++) { deleteRecursively(files[i]); boolean deleted = file.delete(); ... |
boolean | deleteRecursively(File file) delete Recursively if (file.isDirectory()) { boolean success = true; for (File child : file.listFiles()) { if (!deleteRecursively(child)) { success = false; if (success) { ... |
boolean | deleteRecursively(File file) Deletes the given file or directory. if (file.isDirectory()) { boolean success = true; File[] children = file.listFiles(); for (File child : children) { success &= deleteRecursively(child); return success && file.delete(); } else { ... |
void | deleteRecursively(File file) delete Recursively if (file == null || !file.exists() || !file.canRead() || !file.canWrite()) { return; if (file.isDirectory() && file.canExecute()) { for (File f : file.listFiles()) { deleteRecursively(f); file.delete(); |
void | deleteRecursively(File file) Recursively delete a file. File[] children; File child; if (file == null || !file.exists()) return; if (file.isDirectory()) { children = file.listFiles(); for (int i = 0; i < children.length; i++) { child = children[i]; ... |