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 class FileStorage extends Storage {
|
||||||
@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