Uploaded image for project: 'ShrinkWrap'
  1. ShrinkWrap
  2. SHRINKWRAP-451

NIO2 Implementation logic incorrect for determining directories

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Major Major
    • 1.1.3
    • 1.1.2
    • None
    • None

      As reported by contributor Patrick Huy:

      While trying to use shrinkwrap as an in memory file system for testing I noticed that Files.walkFileTreePath does not work at all as

      Path dirPath = fs.getPath("dir");
       Files.createDirectory(dirPath);
       Assert.assertTrue("Created directory was not a directory", Files.isDirectory(dirPath));

      fails. Created directories are not correctly identified as such. Additionally the DirectoryStream implementation does not match what Java's implementation of walkFileTreePath expects (it returns all Files in the filesystem not just those beneath the specified path)

              arubinge@redhat.com Andrew Rubinger (Inactive)
              arubinge@redhat.com Andrew Rubinger (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Created:
                Updated:
                Resolved: