Eliminate a warning

This commit is contained in:
Aaron Culliney 2019-12-01 11:25:05 -08:00
parent 4616a41326
commit ad0a8400ef
1 changed files with 5 additions and 2 deletions

View File

@ -419,8 +419,11 @@ public class Apple2Utils {
// TODO FIXME : WARNING : this is super dangerous if there are symlinks !!!
private static void recursivelyDelete(File file) {
if (file.isDirectory()) {
for (File f : file.listFiles()) {
recursivelyDelete(f);
File[] files = file.listFiles();
if (files != null) {
for (File f : files) {
recursivelyDelete(f);
}
}
}
if (!file.delete()) {