commons-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Sebb (JIRA)" <j...@apache.org>
Subject [jira] [Created] (IO-383) FileUtils.doCopyFile caches the file size; needs to be documented
Date Sun, 02 Jun 2013 11:54:20 GMT
Sebb created IO-383:
-----------------------

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


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

Mime
View raw message