Fix: FileAlreadyExistsException during archive copy
This commit is contained in:
@@ -81,6 +81,7 @@ public class DirectoryManager {
|
||||
}
|
||||
|
||||
try {
|
||||
Files.deleteIfExists(targetArchivePath); // createLink only works if the target does not exist
|
||||
try {
|
||||
Files.createLink(targetArchivePath, existingArchivePath);
|
||||
log.debug("Created hardlink from " + targetArchivePath + " to " + existingArchivePath);
|
||||
|
||||
Reference in New Issue
Block a user