You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@commons.apache.org by "Gary D. Gregory (Jira)" <ji...@apache.org> on 2022/06/02 18:31:00 UTC
[jira] [Closed] (IO-449) FileUtils.sizeOfDirectory(File) throws IllegalArgumentException on symlink that does not exist
[ https://issues.apache.org/jira/browse/IO-449?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Gary D. Gregory closed IO-449.
------------------------------
Fix Version/s: 2.11.0
Resolution: Fixed
Closing per previous comment.
> 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
> Priority: Major
> Fix For: 2.11.0
>
> 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
(v8.20.7#820007)