commons-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Bruno P. Kinoshita (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (IO-449) FileUtils.sizeOfDirectory(File) throws IllegalArgumentException on symlink that does not exist
Date Mon, 30 Jun 2014 22:19:24 GMT

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

Bruno P. Kinoshita commented on IO-449:
---------------------------------------

Patch looks good and doesn't break any existing tests cases.

> FileUtils.sizeOfDirectory(File) throws IllegalArgumentException on symlink that does
not exist
> ----------------------------------------------------------------------------------------------
>
>                 Key: IO-449
>                 URL: https://issues.apache.org/jira/browse/IO-449
>             Project: Commons IO
>          Issue Type: Bug
>          Components: Utilities
>    Affects Versions: 2.5
>            Reporter: Steven Christou
>         Attachments: IO-449.diff
>
>
> FileUtils.isSymlink(File) will throw an IllegalArgumentException if the symbolic link
does not exist. FileUtils.sizeOfDirectory(File) ignores any exceptions that are from the symbolic
link. I added another catch to ignore IllegalArgumentException.



--
This message was sent by Atlassian JIRA
(v6.2#6252)

Mime
View raw message