Searched refs:fileOrDirectory (Results 1 – 3 of 3) sorted by relevance
80 public static void deleteDirectory(File fileOrDirectory) { in deleteDirectory() argument81 if (fileOrDirectory.isDirectory()) { in deleteDirectory()82 for (File child : fileOrDirectory.listFiles()) { in deleteDirectory()86 fileOrDirectory.delete(); in deleteDirectory()
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()
48 fun deleteRecursive(fileOrDirectory: File) { in <lambda>()49 fileOrDirectory.deleteRecursively() in <lambda>()