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

FileUtils.copyDirectoryToDirectory makes infinite loops

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 1.4
    • 2.0
    • None
    • None
    • 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

        1. FileUtilsPatch.txt
          1 kB
          Roun Lee

        Activity

          People

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

            Dates

              Created:
              Updated:
              Resolved: