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

FileUtils copy methods swallow date modification failures

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 2.0
    • Component/s: Utilities
    • Labels:
      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-v5.patch
          20 kB
          Niall Pemberton
        2. IO-215-copy-option-v3.patch
          15 kB
          Niall Pemberton

          Activity

            People

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

              Dates

              • Created:
                Updated:
                Resolved: