This commit is contained in:
Anthony Stirling
2024-05-27 16:31:00 +01:00
parent b93bff5cad
commit 6ffa80c386
21 changed files with 526 additions and 147 deletions

View File

@@ -38,14 +38,14 @@ public class GeneralUtils {
@Override
public FileVisitResult visitFile(Path file, BasicFileAttributes attrs)
throws IOException {
Files.delete(file);
Files.deleteIfExists(file);
return FileVisitResult.CONTINUE;
}
@Override
public FileVisitResult postVisitDirectory(Path dir, IOException exc)
throws IOException {
Files.delete(dir);
Files.deleteIfExists(dir);
return FileVisitResult.CONTINUE;
}
});