mirror of
https://github.com/overleaf/overleaf.git
synced 2024-11-21 20:47:08 -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) {
|
||||
for (File file : directory.listFiles()) {
|
||||
if (file.isDirectory()) {
|
||||
deleteInDirectory(file);
|
||||
}
|
||||
file.delete();
|
||||
}
|
||||
deleteInDirectoryApartFrom(directory);
|
||||
}
|
||||
|
||||
public static void deleteInDirectoryApartFrom(File directory, String... apartFrom) {
|
||||
|
|
Loading…
Reference in a new issue