Skip to content

Bad behaviour of split_base and // with Windows paths containing colons  #10

Open
@stedolan

Description

@stedolan

When windows = true, Fpath does this:

# let d, b = split_base (v "A:B:C") in to_string (d // b);;
- : string = "B:C"
# let d, b = split_base (v "\\\\server\\share\\foo:bar") in to_string (d // b);;
- : string = "foo:bar"

(I think colons are invalid in segments of Windows paths, so the issue might be that v allows such silly paths rather than that split_base and // give a strange result)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions