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

NIO2 Implementation logic incorrect for determining directories

    XMLWordPrintable

Details

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

    Description

      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)

      Attachments

        Activity

          People

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

            Dates

              Created:
              Updated:
              Resolved: