Skip to content

Behaviour of joinpath when the second path has protocol #213

@KuribohG

Description

@KuribohG
UPath('a').joinpath(UPath('s3:///b'))

This call will return PosixUPath('/b'), but

UPath('a').joinuri(UPath('s3:///b'))

will return S3Path('s3:///b').

Maybe in joinpath, we should return just the second path when the second path has protocol (like in joinuri)?

Metadata

Metadata

Assignees

No one assigned

    Labels

    bug 🐛Something isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions