Delete the directory itself in deleteDirectory

This commit is contained in:
0xb00bface 2021-02-13 16:36:10 +01:00
parent dcfb29a90f
commit 3e7d52a988
1 changed files with 2 additions and 0 deletions

View File

@ -55,6 +55,8 @@ public class IoUtils {
if (!deletedAllFiles) {
throw new IOException("Couldn't delete all files in " + directory);
}
Files.delete(directory.toPath());
}
public static long getDirectorySize(File dir) {