Uploaded image for project: 'Commons IO'
  1. Commons IO
  2. IO-383

FileUtils.doCopyFile caches the file size; needs to be documented

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Trivial
    • Resolution: Fixed
    • Affects Version/s: 2.4
    • Fix Version/s: 2.5
    • Component/s: None
    • Labels:
      None

      Description

      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.

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                Unassigned
                Reporter:
                sebb Sebb
              • Votes:
                0 Vote for this issue
                Watchers:
                0 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: