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()
147 public static boolean deleteDirOrFile(File fileOrDirectory) { in deleteDirOrFile() argument148 if (fileOrDirectory.isDirectory()) { in deleteDirOrFile()149 File[] files = fileOrDirectory.listFiles(); in deleteDirOrFile()157 return fileOrDirectory.delete(); in deleteDirOrFile()