[ 
https://issues.apache.org/jira/browse/IO-295?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Marcos Vinícius da Silva updated IO-295:
----------------------------------------

    Attachment: IO-295.patch

I thought a, in my opinion, workaround implementation: on windows, execute a 
dir command on the symlink and check if it contains <SYMLINK> or <SYMLINKD> 
(for files and directories).
I attached a prototype patch. If the idea get accepted, I'll work to improve 
the patch (maybe use commons exec?).
                
> FileUtils.isSymlinks misses symlink folders
> -------------------------------------------
>
>                 Key: IO-295
>                 URL: https://issues.apache.org/jira/browse/IO-295
>             Project: Commons IO
>          Issue Type: Bug
>    Affects Versions: 2.1
>         Environment: Windows 7 64 bit, Oracle Java 7
>            Reporter: Ron Gross
>         Attachments: IO-295.patch
>
>
> I created a symlink folder via mklink.
> Then, while debugging, I noticed that FileUtils.isSymlink() returns false on 
> this directory, while Java 7's Files.isSymbolicLink() returns true.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: 
https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira


Reply via email to