Skip to content

Extended paths (\\?\ and \\?\UNC\) #2

Open

Description

@nemec

The library currently does not support "extended path" identifiers, but it has no length requirement (other than the max length of a .Net string). If you find yourself needing this feature, make a comment here.

Activity

  1. nzbart commented on Dec 2, 2025

    @nzbart

    I was hoping to be able to use this library for scanning over a file share. I noticed this comment that appears to suggest that it's possible to use \\?\UNC\ paths:

    // please note that the following line won't work if you try this on a network folder, like \\Machine\C$
    // simply remove the \\?\ part in this case or use \\?\UNC\ prefix

    However, I'm receiving the following error: Error during directory scan: System.IO.IOException: Unable to enter directory <directory>.

    Workaround
    For the next user who runs into this, I was able to reverse engineer a workaround: replace \\?\UNC\ in your base path with, UNC\, since WalkDir will prepend the path you provide with \\?\.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions