Skip to content

Commit

Permalink
Remove read-only flag when deleting file (#662)
Browse files Browse the repository at this point in the history
  • Loading branch information
TheDearbear authored Apr 21, 2024
1 parent 6b13d89 commit 95fa171
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/main/java/de/hysky/skyblocker/utils/FileUtils.java
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,10 @@ public static void recursiveDelete(Path dir) throws IOException {
});
}

if (!Files.isWritable(dir)) {
dir.toFile().setWritable(true);
}

Files.delete(dir);
}

Expand Down

0 comments on commit 95fa171

Please sign in to comment.