Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add relative_to method #7

Open
etienne-monier opened this issue Dec 1, 2023 · 0 comments
Open

Add relative_to method #7

etienne-monier opened this issue Dec 1, 2023 · 0 comments

Comments

@etienne-monier
Copy link

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant