Skip to content

Support joining in CloudPath construction #103

@jayqi

Description

@jayqi

The constructor signature of pathlib's path classes is actually:

class pathlib.PurePath(*pathsegments)

with behavior that follows os.path.join's behavior.

https://docs.python.org/3/library/pathlib.html#pathlib.PurePath

Is this something we should support? It adds some complexity, because we'd have to decide what to do or how to error with multiple URI schemes or if people use a root slash. (Some of the behavior from pathlib/os.path.join is kind of confusing.)

It would also make an AnyPath (#77) more faithful when dispatching to pathlib.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions