2
0
Fork 0
mirror of https://github.com/ethauvin/rife2.git synced 2025-04-30 18:48:13 -07:00

Fix to clean command

This commit is contained in:
Geert Bevin 2023-03-31 21:27:28 -04:00
parent cece9a92ac
commit 3af5c27b13

View file

@ -195,8 +195,7 @@ public final class FileUtils {
}
var file_list = source.list();
assert file_list != null;
if (file_list != null) {
for (var element : file_list) {
var current_file = new File(source.getAbsolutePath() + File.separator + element);
@ -206,6 +205,7 @@ public final class FileUtils {
deleteFile(current_file);
}
}
}
// If we get here it means we're finished with this directory ... delete it.
deleteFile(source);