Skip to content

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

Closed
@ahoppen

Description

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

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

Also see #976, which is related.

Metadata

Metadata

Assignees

Labels

windowsIssue regarding compiling/running on Windows

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions