mirror of
https://github.com/BlueMap-Minecraft/BlueMap.git
synced 2024-11-05 10:29:45 +01:00
Also replace file on first try
This commit is contained in:
parent
49ab38450e
commit
1a2d3a6d38
@ -56,7 +56,7 @@ public static OutputStream createFilepartOutputStream(final Path file) throws IO
|
||||
*/
|
||||
public static void move(Path from, Path to) throws IOException {
|
||||
try {
|
||||
Files.move(from, to, StandardCopyOption.ATOMIC_MOVE);
|
||||
Files.move(from, to, StandardCopyOption.ATOMIC_MOVE, StandardCopyOption.REPLACE_EXISTING);
|
||||
} catch (FileNotFoundException | NoSuchFileException ignore) {
|
||||
} catch (IOException ex) {
|
||||
try {
|
||||
|
Loading…
Reference in New Issue
Block a user