Delete the directory itself in deleteDirectory
This commit is contained in:
parent
dcfb29a90f
commit
3e7d52a988
|
@ -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) {
|
||||
|
|
Loading…
Reference in New Issue