Skip to content

Conversation

fjansson
Copy link

@fjansson fjansson commented Aug 5, 2025

Proposed as fix for #3201, as an alternative to the one in #3302.

Some filesystems need the scheme as part of the path, while others don't. FsspecStore.from_url() throws an exception if the scheme is left in the path, for any filesystem except http and https. However, the swift fs also needs the scheme in the path. This commit removes the path check, rather than adding more special cases which are difficult to unit test (discussed in #3302).

TODO:

  • Add unit tests and/or doctests in docstrings
  • Add docstrings and API docs for any new/modified user-facing classes and functions
  • New/modified features documented in docs/user-guide/*.rst
  • Changes documented as a new file in changes/
  • GitHub Actions have all passed
  • Test coverage is 100% (Codecov passes)

Proposed as fix for zarr-developers#3201. Some filesystems need the scheme as part of the path,
while others don't. FsspecStore.from_url() throws an exception if the scheme is
left in the path, for any filesystem except http and https. However, the swift fs
also needs the scheme in the path. This commit removes the exception, rather than
adding more special cases.
@github-actions github-actions bot added the needs release notes Automatically applied to PRs which haven't added release notes label Aug 5, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
needs release notes Automatically applied to PRs which haven't added release notes
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants