Don't error if station doesn't have dir when deleted

This commit is contained in:
2025-07-05 17:47:18 -07:00
parent 7a0ce063f1
commit 671844723f

View File

@ -112,6 +112,10 @@ public class StationSettings {
} }
public void deleteDir() throws IOException { public void deleteDir() throws IOException {
if (!Files.exists(stationPath())) {
return;
}
Files.walkFileTree(stationPath(), new SimpleFileVisitor<Path>() { Files.walkFileTree(stationPath(), new SimpleFileVisitor<Path>() {
@Override @Override
public FileVisitResult visitFile(Path file, BasicFileAttributes attrs) throws IOException { public FileVisitResult visitFile(Path file, BasicFileAttributes attrs) throws IOException {