mirror of
https://github.com/GravitLauncher/Launcher
synced 2024-12-23 00:51:01 +03:00
[FIX] Исправление FileAlreadyExistsException
This commit is contained in:
parent
b01e52bb17
commit
06c33a47ad
1 changed files with 1 additions and 0 deletions
|
@ -76,6 +76,7 @@ public void postDiff(UpdateRequest request, UpdateRequestEvent e, HashedDir.Diff
|
|||
LogHelper.debug("Copy file %s to %s", ret.toAbsolutePath().toString(), source.toAbsolutePath().toString());
|
||||
}
|
||||
//Let's go!
|
||||
Files.deleteIfExists(source);
|
||||
Files.copy(ret, source);
|
||||
try (InputStream input = IOHelper.newInput(ret)) {
|
||||
IOHelper.transfer(input, source);
|
||||
|
|
Loading…
Reference in a new issue