mirror of
https://github.com/BlueMap-Minecraft/BlueMap.git
synced 2024-12-25 02:17:42 +01:00
Replace exisiting on move to avoid random FileAlreadyExistsException
This commit is contained in:
parent
5f9716adc5
commit
ddce10f6ab
@ -60,7 +60,7 @@ public static void move(Path from, Path to) throws IOException {
|
||||
} catch (FileNotFoundException | NoSuchFileException ignore) {
|
||||
} catch (IOException ex) {
|
||||
try {
|
||||
Files.move(from, to);
|
||||
Files.move(from, to, StandardCopyOption.REPLACE_EXISTING);
|
||||
} catch (FileNotFoundException | NoSuchFileException ignore) {}
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user