mirror of
https://github.com/ethauvin/rife2.git
synced 2025-04-30 10:38:12 -07:00
Fix to clean command
This commit is contained in:
parent
cece9a92ac
commit
3af5c27b13
1 changed files with 8 additions and 8 deletions
|
@ -195,15 +195,15 @@ public final class FileUtils {
|
|||
}
|
||||
|
||||
var file_list = source.list();
|
||||
if (file_list != null) {
|
||||
for (var element : file_list) {
|
||||
var current_file = new File(source.getAbsolutePath() + File.separator + element);
|
||||
|
||||
assert file_list != null;
|
||||
for (var element : file_list) {
|
||||
var current_file = new File(source.getAbsolutePath() + File.separator + element);
|
||||
|
||||
if (current_file.isDirectory()) {
|
||||
deleteDirectory(current_file);
|
||||
} else {
|
||||
deleteFile(current_file);
|
||||
if (current_file.isDirectory()) {
|
||||
deleteDirectory(current_file);
|
||||
} else {
|
||||
deleteFile(current_file);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue