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-v5.patch
        20 kB
        Niall Pemberton
      2. IO-215-copy-option-v3.patch
        15 kB
        Niall Pemberton

        Activity

        Sebb created issue -
        Sebb made changes -
        Field Original Value New Value
        Summary FileUtils copy methods swallow FileUtils copy methods swallow date modification failures
        Niall Pemberton made changes -
        Attachment IO-215-copy-option.patch [ 12454663 ]
        Niall Pemberton made changes -
        Attachment IO-215-copy-option-v2.patch [ 12454664 ]
        Niall Pemberton made changes -
        Attachment IO-215-copy-option.patch [ 12454663 ]
        Niall Pemberton made changes -
        Attachment IO-215-copy-option-v3.patch [ 12454836 ]
        Niall Pemberton made changes -
        Attachment IO-215-copy-option-v2.patch [ 12454664 ]
        Niall Pemberton made changes -
        Attachment IO-215-copy-option-v4.patch [ 12454901 ]
        Niall Pemberton made changes -
        Attachment IO-215-copy-option-v5.patch [ 12455183 ]
        Niall Pemberton made changes -
        Attachment IO-215-copy-option-v4.patch [ 12454901 ]
        Niall Pemberton made changes -
        Status Open [ 1 ] Resolved [ 5 ]
        Fix Version/s 2.0 [ 12312961 ]
        Resolution Fixed [ 1 ]
        Mark Thomas made changes -
        Workflow jira [ 12473632 ] Default workflow, editable Closed status [ 12601883 ]
        Henri Yandell made changes -
        Status Resolved [ 5 ] Closed [ 6 ]

          People

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

            Dates

            • Created:
              Updated:
              Resolved:

              Development