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
Fix FileSystemProvider to work with volume and pipe paths #15873
Conversation
src/System.Management.Automation/namespaces/FileSystemProvider.cs
Outdated
Show resolved
Hide resolved
@SteveL-MSFT Maybe good to take the #11898 in consideration while resolving this path problem. Both examples work on Windows PowerShell
Found in this Rancher Wins documentation
|
For reference #10805 |
This pull request has been automatically marked as Review Needed because it has been there has not been any activity for 7 days. |
@SteveL-MSFT Can you resolve conflicts? |
This pull request has been automatically marked as Review Needed because it has been there has not been any activity for 7 days. |
This PR has Quantification details
Why proper sizing of changes matters
Optimal pull request sizes drive a better predictable PR flow as they strike a
What can I do to optimize my changes
How to interpret the change counts in git diff output
Was this comment helpful? |
@adityapatwardhan fixed merge conflict |
test/powershell/Modules/Microsoft.PowerShell.Management/Get-ChildItem.Tests.ps1
Outdated
Show resolved
Hide resolved
…ildItem.Tests.ps1
Handy links: |
PR Summary
A change in the FileSystemProvider to get the correct casing for a path regressed working with NTFS volume paths that start with
\\?\
as it's not a UNC path so skips that handling. Also, the logic for handling a trailing directory separator relied on there to be no content so something like: "c:\foo\\bar" would handle this incorrectly.Fix is to skip the first parts of the path even if it's not a UNC path, but starts with "\\?\". Then we only check for empty content if we are at the end of the path to handle trailing separator correctly.
Also supports
\\.\pipe
on WindowsPR Context
Fix #15872
PR Checklist
.h
,.cpp
,.cs
,.ps1
and.psm1
files have the correct copyright headerWIP:
or[ WIP ]
to the beginning of the title (theWIP
bot will keep its status check atPending
while the prefix is present) and remove the prefix when the PR is ready.(which runs in a different PS Host).