Skip to content

Add relative_to method #7

@etienne-monier

Description

@etienne-monier

That would be nice to have a relative_to method for URL that would not catch the PurePath.relative_to method.

An implementation:

ralative_path = Path(base_url.path).relative_to(Path(child_path.path))

I'll try to take some time one day to help you for this nice package.

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