Skip to content

Provide key/object_name/blob attribute in CloudPath #300

Open
@Dev-iL

Description

@Dev-iL

Suppose I have a remote path as follows:

gcs_path = GCSPath("gs://bucket-name/A/B/C/filename.tar.gz")

I'd like a way to get a UPath object that represents the location in the bucket, e.g.

UPath("A/B/C/filename.tar.gz")

I'd like to avoid my present workaround of "/".join(gcs_path.parts[1:]) since it's not immediately clear what this code is doing.

Possibly related to #170

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