[
https://issues.apache.org/jira/browse/IO-383?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Sebb resolved IO-383.
---------------------
Resolution: Fixed
Fix Version/s: 2.5
URL: http://svn.apache.org/r1488708
Log:
IO-383 FileUtils.doCopyFile caches the file size; needs to be documented
Modified:
commons/proper/io/trunk/src/changes/changes.xml
commons/proper/io/trunk/src/main/java/org/apache/commons/io/FileUtils.java
> FileUtils.doCopyFile caches the file size; needs to be documented
> -----------------------------------------------------------------
>
> Key: IO-383
> URL: https://issues.apache.org/jira/browse/IO-383
> Project: Commons IO
> Issue Type: Bug
> Affects Versions: 2.4
> Reporter: Sebb
> Priority: Trivial
> Fix For: 2.5
>
>
> FileUtils.doCopyFile saves the input file size before starting the copy.
> The copy is considered complete when the original file size is reached.
> The method then checks the new input file size against the destination size.
> This will fail if the file has changed in size since the copy started.
> This behaviour should be documented; also it would help if the two sizes were
> shown in the exception message.
--
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