diff --git a/cli/src/main/java/com/devonfw/tools/ide/io/FileAccessImpl.java b/cli/src/main/java/com/devonfw/tools/ide/io/FileAccessImpl.java index 87e527fb8..948d3957f 100644 --- a/cli/src/main/java/com/devonfw/tools/ide/io/FileAccessImpl.java +++ b/cli/src/main/java/com/devonfw/tools/ide/io/FileAccessImpl.java @@ -329,7 +329,7 @@ public void symlink(Path source, Path targetLink) { } else { BasicFileAttributes attr = Files.readAttributes(targetLink, BasicFileAttributes.class, LinkOption.NOFOLLOW_LINKS); - if (attr.isOther() && attr.isDirectory()) { + if (attr.isOther() && attr.isDirectory() && this.context.getSystemInfo().isWindows()) { this.context.debug("Deleting symbolic link (junction) to be re-created at {}", targetLink); Files.delete(targetLink); }