You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@commons.apache.org by "Sebb (JIRA)" <ji...@apache.org> on 2013/04/17 04:12:13 UTC

[jira] [Commented] (IO-295) FileUtils.isSymlinks misses symlink folders

    [ https://issues.apache.org/jira/browse/IO-295?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13633679#comment-13633679 ] 

Sebb commented on IO-295:
-------------------------

Looks like DIR does not list symlinks without adding either * or ? to the end of the path.
This means that the DIR command may return details for other symbolic links that happen to match the wildard expression.
The suggested patch would need enhancing to prevent false matches.
                
> 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-1.patch, 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
For more information on JIRA, see: http://www.atlassian.com/software/jira