Searched refs:fileOrDirectory (Results 1 – 2 of 2) 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()
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()