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

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

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Trivial
    • Resolution: Fixed
    • 2.4
    • 2.5
    • None
    • 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

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

              Dates

                Created:
                Updated:
                Resolved: