Commons IO
  1. Commons IO
  2. IO-215

FileUtils copy methods swallow date modification failures

    Details

    • Type: Bug Bug
    • Status: Closed
    • Priority: Major 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?

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

        Activity

        No work has yet been logged on this issue.

          People

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

            Dates

            • Created:
              Updated:
              Resolved:

              Development