diff --git a/src/zarr/storage/_fsspec.py b/src/zarr/storage/_fsspec.py index bbb934cc7d..eeda0d9001 100644 --- a/src/zarr/storage/_fsspec.py +++ b/src/zarr/storage/_fsspec.py @@ -141,10 +141,6 @@ def __init__( category=ZarrUserWarning, stacklevel=2, ) - if "://" in path and not path.startswith("http"): - # `not path.startswith("http")` is a special case for the http filesystem (¯\_(ツ)_/¯) - scheme, _ = path.split("://", maxsplit=1) - raise ValueError(f"path argument to FsspecStore must not include scheme ({scheme}://)") @classmethod def from_upath( @@ -249,12 +245,6 @@ def from_url( if not fs.async_impl: fs = _make_async(fs) - # fsspec is not consistent about removing the scheme from the path, so check and strip it here - # https://github.com/fsspec/filesystem_spec/issues/1722 - if "://" in path and not path.startswith("http"): - # `not path.startswith("http")` is a special case for the http filesystem (¯\_(ツ)_/¯) - path = fs._strip_protocol(path) - return cls(fs=fs, path=path, read_only=read_only, allowed_exceptions=allowed_exceptions) def with_read_only(self, read_only: bool = False) -> FsspecStore: