Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-8343221

IOUtils.copyRecursive() doesn't create parent directories

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: P4 P4
    • None
    • None
    • tools
    • None
    • generic
    • generic

      When applied to a file rather than a directory, jpackage's IOUtils.copyRecursive() function does not ensure that the parent directory of the destination file exists.
      If the parent directory doesn't exist, IOUtils.copyRecursive() will throw an exception.

      Not an issue for jpackage, but when IOUtils.copyRecursive() is used in jpackage tests, have to call Files.createDirectory() for the parent directory of the destination file to workaround this bug.

            asemenyuk Alexey Semenyuk
            asemenyuk Alexey Semenyuk
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated: