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

spec: fix unstrip_protocol #980

Merged
merged 1 commit into from
Jun 14, 2022

Conversation

jonburdo
Copy link
Contributor

@jonburdo jonburdo commented Jun 10, 2022

Fixes #979

Now the function only returns the original path if it starts with f"{protocol}://" instead of just checking for "protocol".

@jonburdo jonburdo force-pushed the fix/unstrip-protocol-orig-path branch from d92b31c to acbaf6c Compare June 13, 2022 20:48
@jonburdo jonburdo changed the title fix unstrip_protocol bug where original path may be incorrectly returned spec: fix unstrip_protocol Jun 14, 2022
The original `name` argument will be incorrectly returned in cases where
it begins with one of the class's protocols.
@jonburdo jonburdo force-pushed the fix/unstrip-protocol-orig-path branch from acbaf6c to 617f5ba Compare June 14, 2022 14:21
@martindurant martindurant merged commit e00f987 into fsspec:master Jun 14, 2022
@martindurant
Copy link
Member

Thank you

@jonburdo jonburdo deleted the fix/unstrip-protocol-orig-path branch June 14, 2022 17:07
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

Successfully merging this pull request may close these issues.

bug: unstrip_protocol incorrectly returns original path
3 participants