mirror of
https://github.com/BlueMap-Minecraft/BlueMap.git
synced 2024-09-27 14:52:57 +02:00
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
|
@Override
|
||||||
public void purgeMap(String mapId, Function<ProgressInfo, Boolean> onProgress) throws IOException {
|
public void purgeMap(String mapId, Function<ProgressInfo, Boolean> onProgress) throws IOException {
|
||||||
final Path directory = getFilePath(mapId);
|
final Path directory = getFilePath(mapId);
|
||||||
|
if (!Files.exists(directory)) return;
|
||||||
|
|
||||||
final int subFilesCount;
|
final int subFilesCount;
|
||||||
final LinkedList<Path> subFiles;
|
final LinkedList<Path> subFiles;
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user