Skip to content
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

Agnostic URI/path #28263

Open
vbjay opened this issue Dec 23, 2018 · 4 comments
Open

Agnostic URI/path #28263

vbjay opened this issue Dec 23, 2018 · 4 comments
Labels
api-suggestion Early API idea and discussion, it is NOT ready for implementation area-System.IO
Milestone

Comments

@vbjay
Copy link

vbjay commented Dec 23, 2018

Related: #14590

.Net needs a way to represent a path that isn't a string but a struct or class. I am working on the GitExtensions project. Git returns linux paths. Creating a System.URI instance with a path like /d/git/GitExtensions/ fails on Windows. I have found a few projects that try to manage paths.

Being able to store a normalized path in our variables that can be translated to URIs or posix or... would be very helpful. All of the following paths should be stored in a normalized posix format that can then be used in any path usage.

c:\git\project 1\file
c:\git/project 1/file
/c/git/project 1/file
\\server\share\folder 1\file

I was hoping I could use System.URI as the backing store of the path objects but linux paths are a no go so I am looking into other solutions.

@danmoseley
Copy link
Member

@JeremyKuhne

@vbjay
Copy link
Author

vbjay commented Dec 26, 2018

Another point, when checking equality the first 3 paths should be equal.

@vbjay
Copy link
Author

vbjay commented Dec 26, 2018

Also making this work in .net standard so the full framework also exhibits the same behaviour would be great.

@msftgits msftgits transferred this issue from dotnet/corefx Feb 1, 2020
@msftgits msftgits added this to the Future milestone Feb 1, 2020
@maryamariyan maryamariyan added the untriaged New issue has not been triaged by the area owner label Feb 23, 2020
@JeremyKuhne JeremyKuhne removed the untriaged New issue has not been triaged by the area owner label Mar 3, 2020
@ctigrisht
Copy link

please fix this it's been a long time

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
api-suggestion Early API idea and discussion, it is NOT ready for implementation area-System.IO
Projects
None yet
Development

No branches or pull requests

6 participants