Potentially unexpected behavior on FsspecStore
list method
#2777
Labels
bug
Potential issues with the zarr-python library
FsspecStore
list method
#2777
Zarr version
3.0.1
Numcodecs version
0.15.0
Python Version
3.12
Operating System
Mac
Installation
pip
Description
Looks as though this line will have some unexpected results (wiping out all separators) if the empty string is passed as the path during store initialization. The empty string will otherwise work as a way of specifying the current working directory, so this may be undesirable. A couple of resolutions make sense here:
self.path + "/"
with""
:zarr-python/src/zarr/storage/_fsspec.py
Line 344 in e602aa1
Steps to reproduce
Simplest path to reproduction is just to simulate values. These come from a grib in the kerchunk tests:
Additional output
No response
The text was updated successfully, but these errors were encountered: