Fix project atts directory deletion to delete base directory too.

This commit is contained in:
Winston Li 2015-02-22 10:19:44 +00:00
parent ec0c70c622
commit 6e5163c186
2 changed files with 6 additions and 1 deletions

View file

@ -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);
} }

View file

@ -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);
} }
} }