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

URL.path includes leading Slash if the URL points to the root directory of a drive on Windows #977

Closed
ahoppen opened this issue Oct 10, 2024 · 3 comments
Assignees
Labels
windows Issue regarding compiling/running on Windows

Comments

@ahoppen
Copy link
Member

ahoppen commented Oct 10, 2024

print(URL(fileURLWithPath: #"C:\"#).path)

prints /C:. It should print C:\.

Also see #976, which is related.

@jmschonfeld
Copy link
Contributor

jmschonfeld commented Oct 10, 2024

I think this was likely resolved by #964 (unless this issue is specifically about something like C:\ only and not C:\foo?)

@ahoppen
Copy link
Member Author

ahoppen commented Oct 11, 2024

It specific about C:\. I don't see the issue with non-root URLs

@jrflat
Copy link
Contributor

jrflat commented Dec 11, 2024

This was fixed by #1038, please verify in a 6.1 or main snapshot, thanks!

@jrflat jrflat closed this as completed Dec 11, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
windows Issue regarding compiling/running on Windows
Projects
None yet
Development

No branches or pull requests

4 participants