Skip to content

Commit

Permalink
just use apache utils to delete all the files/directories
Browse files Browse the repository at this point in the history
  • Loading branch information
halkeye committed Nov 1, 2020
1 parent 110cbdc commit c6d813c
Showing 1 changed file with 1 addition and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -127,11 +127,7 @@ public void start(boolean downloadUc) {
File[] toBeDeleted = refDir.listFiles();
if (toBeDeleted != null) {
for (File deletableFile : toBeDeleted) {
if (deletableFile.isDirectory()) {
FileUtils.deleteDirectory(deletableFile);
} else {
deletableFile.delete();
}
FileUtils.forceDelete(deletableFile);
}
}
} catch (IOException e) {
Expand Down

0 comments on commit c6d813c

Please sign in to comment.