-
Notifications
You must be signed in to change notification settings - Fork 4.9k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Question: Is .NET behavior proper in the presence of the \\?\
prefix? What does "\\?\." exactly mean?
#39300
Comments
I couldn't figure out the best area label to add to this issue. If you have write-permissions please help me learn by adding exactly one area label. |
The relevant documentations is here: Scrolling slightly up, the section above that reads (emphasis mine):
But this does not mean that .NET API's might not provide support for doing path math and support Besides long paths on systems not configured to accept them without Paths with |
Thanks for the details. We don't normalize paths prefixed with Here is the relevant code in runtime/src/libraries/System.Private.CoreLib/src/System/IO/Path.Windows.cs Lines 54 to 61 in 6072e4d
Here are a couple of articles that might interest you: https://docs.microsoft.com/en-us/dotnet/standard/io/file-path-formats |
Yes thanks for those links.
lol Didn't know that What these don't say explicitly is that these paths with |
Due to lack of recent activity, this issue has been marked as a candidate for backlog cleanup. It will be closed if no further activity occurs within 14 more days. Any new comment (by anyone, not necessarily the author) will undo this process. This process is part of our issue cleanup automation. |
This issue will now be closed since it had been marked |
Description
I know
\\?\
means 'do not parse', but might I halfway misuse this repo for a Win32 question about this syntax and the behavior of .NET path API's with them?Is it even valid to use
\\?\.
unless there is something to talk to that is called exactly that? Like a device or file/directory that has such a weird name? Or should it in fact refer to the current directory and direct API's to maintain the\\?\
prefix to support long paths?Also, I just give one example where path math isn't being done because the
\\?\
prefix is present (presumably). Should this be and remain this way?First result
Second result
Configuration
Same on
netcoreapp3.1
as onnet5.0
Regression?
Might be intended behavior.
Opinion
It could be useful to be able to do path math with
\\?\
with an increasing number of machines able to use long paths since recent versions of Windows.The text was updated successfully, but these errors were encountered: