mirror of
https://github.com/mauiaaron/apple2.git
synced 2025-03-06 15:30:32 +00:00
Eliminate a warning
This commit is contained in:
parent
4616a41326
commit
ad0a8400ef
@ -419,8 +419,11 @@ public class Apple2Utils {
|
|||||||
// TODO FIXME : WARNING : this is super dangerous if there are symlinks !!!
|
// TODO FIXME : WARNING : this is super dangerous if there are symlinks !!!
|
||||||
private static void recursivelyDelete(File file) {
|
private static void recursivelyDelete(File file) {
|
||||||
if (file.isDirectory()) {
|
if (file.isDirectory()) {
|
||||||
for (File f : file.listFiles()) {
|
File[] files = file.listFiles();
|
||||||
recursivelyDelete(f);
|
if (files != null) {
|
||||||
|
for (File f : files) {
|
||||||
|
recursivelyDelete(f);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
if (!file.delete()) {
|
if (!file.delete()) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user