-
-
Notifications
You must be signed in to change notification settings - Fork 284
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
LocalStore.list_prefix adds directory prefix to all paths #2190
Comments
In my very inexperienced eyes, this looks like the cause: zarr-python/src/zarr/store/local.py Lines 204 to 211 in b1ecdd5
The root directory path is not stripped away and returned as is (line 206). I am not sure why the code appears to be duplicated in that function? Maybe someone who was implementing the correct code (lines 208 - 211) forgot to delete the previous block? |
yep, and I can split the fixes out of #2064 into their own PR |
#2064 is in, so I'm curious to see if the problem you observed is still around. zarr-python/tests/v3/test_store/test_local.py Lines 39 to 40 in b1ecdd5
LOL indeed, this bit me when working on the PR because I had no idea why my changes to the localstore implementation were not making tests fail :) |
Zarr version
v3
Numcodecs version
?
Python Version
?
Operating System
?
Installation
?
Description
list_prefix("")
for a LocalStore seems inconsistent with the other stores. Discovered in #2189Also:
zarr-python/tests/v3/test_store/test_local.py
Lines 39 to 40 in b1ecdd5
LOL
Steps to reproduce
Additional output
No response
The text was updated successfully, but these errors were encountered: