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

FileUtils.copyDirectoryToDirectory makes infinite loops

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 1.4
    • Fix Version/s: 2.0
    • Component/s: None
    • Labels:
      None
    • Environment:

      Windows XP

      Description

      When using FileUtils.copyDirectoryToDirectory, infinite loops has occurred.

      – detail –
      src directory : D:\a
      dest directory : D:\a
      call : FileUtils.copyDirectoryToDirectory(new File("D:\a"), new File("D:\a"));
      expected result : directory D:\a\a will be created
      actual result : D:\a\a\a\a....... was created

      i guess FileUtils.copyDirectoryToDirectory causes of this result.
      ("destDir.mkdir()" is done before "srcDir.listFiles()")

      am i calling wrong method?

      thank you.

        Attachments

          Activity

            People

            • Assignee:
              niallp Niall Pemberton
              Reporter:
              tora_5675 tora yamada
            • Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: