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

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

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Not an Issue
    • Icon: P4 P4
    • tbd
    • 25
    • 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).

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

              Created:
              Updated:
              Resolved: