We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f776e71 commit 3e8d4e5Copy full SHA for 3e8d4e5
src/main/java/org/codehaus/plexus/archiver/AbstractUnArchiver.java
@@ -331,8 +331,9 @@ protected void extractFile(
331
332
if (!StringUtils.isEmpty(symlinkDestination)) {
333
// Delete existing symlink if it exists
334
- if (Files.isSymbolicLink(targetFileName.toPath())) {
335
- Files.delete(targetFileName.toPath());
+ Path symlinkPath = targetFileName.toPath();
+ if (Files.isSymbolicLink(symlinkPath)) {
336
+ Files.delete(symlinkPath);
337
}
338
SymlinkUtils.createSymbolicLink(targetFileName, new File(symlinkDestination));
339
} else if (isDirectory) {
0 commit comments