mirror of
https://github.com/overleaf/overleaf.git
synced 2024-11-29 22:21:30 -05:00
Made deleteInDirectory use deleteInDirectoryApartFrom.
This commit is contained in:
parent
555f4e1674
commit
eb8dccc151
1 changed files with 1 additions and 6 deletions
|
@ -33,12 +33,7 @@ public class WLFileStore {
|
||||||
}
|
}
|
||||||
|
|
||||||
public static void deleteInDirectory(File directory) {
|
public static void deleteInDirectory(File directory) {
|
||||||
for (File file : directory.listFiles()) {
|
deleteInDirectoryApartFrom(directory);
|
||||||
if (file.isDirectory()) {
|
|
||||||
deleteInDirectory(file);
|
|
||||||
}
|
|
||||||
file.delete();
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
public static void deleteInDirectoryApartFrom(File directory, String... apartFrom) {
|
public static void deleteInDirectoryApartFrom(File directory, String... apartFrom) {
|
||||||
|
|
Loading…
Reference in a new issue