fix: console resize not working

This commit is contained in:
hyb1996
2017-12-29 17:06:28 +08:00
parent 174e1d933c
commit 4188b2027c
6 changed files with 16 additions and 24 deletions

View File

@@ -351,9 +351,12 @@ public class PFiles {
public static boolean deleteRecursively(File file) {
if (file.isFile())
return file.delete();
for (File child : file.listFiles()) {
if (!deleteRecursively(child))
return false;
File[] children = file.listFiles();
if (children != null) {
for (File child : children) {
if (!deleteRecursively(child))
return false;
}
}
return file.delete();
}