Skip to content

Behavior of joining paths starting with "/" is unnatural #12

@kenjitayama

Description

@kenjitayama

I think the following joining behavior is unnatural.

let path = Path("/usr/bin") + Path("/swift") // becomes "/swift" instead of "/usr/bin/swift"

Implemented here:

// Absolute paths replace relative paths

I think it is common to build paths with, left hand side not ending with "/" and right handing side starting with "/".

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