Skip to content

Commit

Permalink
Fixed code defect
Browse files Browse the repository at this point in the history
  • Loading branch information
Nurgul Amat committed Aug 4, 2023
1 parent 67c32cc commit e39e792
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -117,7 +117,7 @@ public boolean shouldDeleteDirectory(File dir) throws IOException {
}

public void deleteParentDirectories(File directory) {
File parent = directory.getParentFile();
File parent = directory;
while (parent != null && !parent.getPath().equals(this.archiveRootPath)) {
if (!parent.delete()) {
break;
Expand Down

0 comments on commit e39e792

Please sign in to comment.