[
https://issues.apache.org/jira/browse/IO-581?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Gary D. Gregory resolved IO-581.
--------------------------------
Resolution: Incomplete
No reply in 2 years, closing.
> Potential issues with File.length()
> -----------------------------------
>
> Key: IO-581
> URL: https://issues.apache.org/jira/browse/IO-581
> Project: Commons IO
> Issue Type: Bug
> Reporter: Roman Leventov
> Priority: Major
>
> File.length() is called multiple times in the code of the project, some of
> them might be problematic due to the contract of this method: it silently
> returns 0 in case of any I/O error.
> Examples: FileUtils.readFileToByteArray(), FileUtils.sizeOf(), etc.
> Some uses of File.lastModified() might be problematic for similar reasons.
--
This message was sent by Atlassian Jira
(v8.3.4#803005)