Searched refs:fileOrDirectory (Results 1 – 3 of 3) sorted by relevance
45 public static void deleteRecursive(File fileOrDirectory) { in deleteRecursive() argument46 if (fileOrDirectory.isDirectory()) in deleteRecursive()47 for (File child : fileOrDirectory.listFiles()) in deleteRecursive()50 fileOrDirectory.delete(); in deleteRecursive()
105 private static void deleteRecursive(File fileOrDirectory) { in deleteRecursive() argument106 if (fileOrDirectory.isDirectory()) in deleteRecursive()107 for (File child : fileOrDirectory.listFiles()) in deleteRecursive()110 fileOrDirectory.delete(); in deleteRecursive()
141 public static boolean deleteDirOrFile(File fileOrDirectory) { in deleteDirOrFile() argument142 if (fileOrDirectory.isDirectory()) { in deleteDirOrFile()143 File[] files = fileOrDirectory.listFiles(); in deleteDirOrFile()151 return fileOrDirectory.delete(); in deleteDirOrFile()