commons-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Austin Doupnik (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (IO-389) FileUtils.sizeOfDirectory can throw IllegalArgumentException
Date Wed, 10 Jul 2013 12:23:49 GMT

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

Austin Doupnik commented on IO-389:
-----------------------------------

Thank you for the quick response time!
                
> FileUtils.sizeOfDirectory can throw IllegalArgumentException
> ------------------------------------------------------------
>
>                 Key: IO-389
>                 URL: https://issues.apache.org/jira/browse/IO-389
>             Project: Commons IO
>          Issue Type: Bug
>            Reporter: Austin Doupnik
>            Priority: Minor
>             Fix For: 2.5
>
>         Attachments: IO-389.patch
>
>
> FileUtils.sizeOfDirectory has a small concurrency issue. Between the call to File.listFiles
and the call to FileUtils.sizeOf, a file may be deleted. This can cause FileUtils.sizeOf to
throw an IllegalArgumentException, indicating that the file does not exist.

--
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

Mime
View raw message