Skip to content

Non-Letter Drive Windows Paths Are Incorrectly Reported As Non-Absolute #271

@Frizlab

Description

@Frizlab

This is an edge-case for sure.

Here’s the source code:

print(FilePath(#"C:\foo"#).isAbsolute)
print(FilePath(#"+:\foo"#).isAbsolute)
print(FilePath(#"€:\foo"#).isAbsolute)

The three paths are valid absolute paths on Windows, however the output of this program will be true, false, false.

For more info see https://www.ryanliptak.com/blog/windows-drive-letters-are-not-limited-to-a-z/.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions