(fs) Files.newDirectoryStream("symlink") throws NotDirectoryException (win)

XMLWordPrintable

    • Type: Bug
    • Resolution: Not an Issue
    • Priority: P4
    • tbd
    • Affects Version/s: 25
    • Component/s: core-libs
    • None
    • generic
    • windows

      If a directory contains

      10/01/2025 04:37 PM <DIR> dir
      10/01/2025 04:41 PM <SYMLINKD> dirlink [dir]
      10/01/2025 04:41 PM <JUNCTION> junction [C:\Users\bpb\dev\bugs\reparse\dir]
      10/01/2025 04:41 PM <SYMLINK> symlink [dir]

      then creating a directory stream succeeds for Paths created from "dir", "dirlink", and "junction", but throws NotDirectoryException for a Path created from "symlink". The method succeeds with Paths created from "dir" and "symlink" on UNIX (where "dirlink" and "junction" are irrelevant).

            Assignee:
            Brian Burkhalter
            Reporter:
            Brian Burkhalter
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: