[ https://issues.apache.org/jira/browse/IVY-1594?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16642756#comment-16642756 ]
Simon Wade edited comment on IVY-1594 at 10/9/18 3:42 AM: ---------------------------------------------------------- The cause appears to be the behaviour of FileUtils.prepareCopy(): if the source is a directory, and the destination *doesn't* exist, then it will create the required directory structure via a call to File.mkdirs(). The existence of the destination directory is what causes symlink creation to fail. was (Author: simon wade): The cause appears to be the behaviour of FileUtils.prepareCopy(): if the source is a directory, and the destination *doesn't* exist, then it will create the required directory structure via a call to File.mkdirs(). The existence of the destination folder is what causes symlink creation to fail.** > Directory symlink creation always fails on Windows > -------------------------------------------------- > > Key: IVY-1594 > URL: https://issues.apache.org/jira/browse/IVY-1594 > Project: Ivy > Issue Type: Bug > Components: Core > Affects Versions: 2.5.0-rc1 > Reporter: Simon Wade > Priority: Major > > Creating symlinks to directories, during a retrieve, seems to _always_ fail > on Windows 7, even when running with the required (elevated) privileges. > Instead, the fallback copy method is always used. > Running with verbose logging reveals the fallback is used due to a > java.nio.file.FileAlreadyExistsException. -- This message was sent by Atlassian JIRA (v7.6.3#76005)