forked from mirror/BlueMap
Fix error when purging a map but the directory is already deleted. Fixes: #490
This commit is contained in:
parent
28c9166030
commit
5f0942a8ae
@ -191,6 +191,8 @@ public void deleteMeta(String mapId, String name) throws IOException {
|
||||
@Override
|
||||
public void purgeMap(String mapId, Function<ProgressInfo, Boolean> onProgress) throws IOException {
|
||||
final Path directory = getFilePath(mapId);
|
||||
if (!Files.exists(directory)) return;
|
||||
|
||||
final int subFilesCount;
|
||||
final LinkedList<Path> subFiles;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user