Skip to content

ENH: enable relative_to() between to cloud files #149

@remi-braun

Description

@remi-braun

Hello,

Is there any drowbacks to implement relative_to for Cloud paths ?

For example my usecase is:

root = AnyPath("s3://my-bucket/")
file = AnyPath("s3://my-bucket/END_TO_END_RESULTS/INDEX/result.tif")

And I would like to retrieve the relative path between the 2, a.k.a : "/END_TO_END_RESULTS/INDEX/result.tif".

Does it make sense ? I am not very familiar with the cloud paths usages.

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