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

FileUtils.copyDirectory preserves destination subdirectories, rather than overwriting with the source subdirectories

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Trivial
    • Resolution: Fixed
    • 1.4
    • 2.0
    • Utilities
    • None
    • Windows XP

    Description

      When using FileUtils.copyDirectory to copy directories with subdirectories, the source will overwrite all files that exist in the destination directory, but not the subdirectories themselves. The files inside the subdirectories will be overwritten. The only difference that I've noticed thus far is that this preserves the old file dates of the subdirectories rather than using the dates from the source or the current date, if preserveFileDate is set to 'false.'

      Attachments

        1. IO-190.patch
          4 kB
          Jukka Zitting

        Activity

          People

            Unassigned Unassigned
            topramen JPW
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: