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

FileUtils copy methods swallow date modification failures

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • None
    • 2.0
    • Utilities
    • None

    Description

      FileUtils.doCopyDirectory(..) and .FileUtils.doCopyFile(..) both call the setLastModified() method, but fail to check if it succeeded or not.

      Surely if the caller has asked for the date to be preserved, failure to do so should be reported somehow?

      Attachments

        1. IO-215-copy-option-v3.patch
          15 kB
          Niall Pemberton
        2. IO-215-copy-option-v5.patch
          20 kB
          Niall Pemberton

        Activity

          People

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

            Dates

              Created:
              Updated:
              Resolved: