Changing root folder letter to '/' in a custom PowerShell provider #20157
yotsuda
started this conversation in
Enhancements
Replies: 1 comment 2 replies
-
By specifying parameters in the PSDriveInfo constructor, I was able to change the internal root folder character to /. How can I fix it? Thanks. |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hello experts,
I'm attempting to create my own provider class in PowerShell. In this custom provider, I want the root folder to be represented by a / instead of the default \.
I've subclassed NavigationCmdletProvider and overridden ItemSeparator to return /. However, the representation of the root folder still remains as \.
How can I ensure that the root folder uses the / character in my custom provider?
Thank you in advance for any guidance.
Beta Was this translation helpful? Give feedback.
All reactions