mirror of
https://github.com/overleaf/overleaf.git
synced 2024-12-01 20:29:39 -05:00
Fix project atts directory deletion to delete base directory too.
This commit is contained in:
parent
ec0c70c622
commit
6e5163c186
2 changed files with 6 additions and 1 deletions
|
@ -131,6 +131,11 @@ public class Util {
|
||||||
t.printStackTrace();
|
t.printStackTrace();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public static void deleteDirectory(File directory) {
|
||||||
|
deleteInDirectory(directory);
|
||||||
|
directory.delete();
|
||||||
|
}
|
||||||
|
|
||||||
public static void deleteInDirectory(File directory) {
|
public static void deleteInDirectory(File directory) {
|
||||||
deleteInDirectoryApartFrom(directory);
|
deleteInDirectoryApartFrom(directory);
|
||||||
}
|
}
|
||||||
|
|
|
@ -67,7 +67,7 @@ public class CandidateSnapshot {
|
||||||
|
|
||||||
public void deleteServletFiles() throws IOException {
|
public void deleteServletFiles() throws IOException {
|
||||||
if (attsDirectory != null) {
|
if (attsDirectory != null) {
|
||||||
Util.deleteInDirectory(attsDirectory);
|
Util.deleteDirectory(attsDirectory);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue