We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 1d177c1 commit 0735a43Copy full SHA for 0735a43
src/zarr/storage/_obstore.py
@@ -245,7 +245,7 @@ async def _transform_list_dir(
245
# prefix, so we don't double-check that the returned results actually start with the
246
# given prefix.
247
prefixes = [obj.lstrip(prefix).lstrip("/") for obj in list_result["common_prefixes"]]
248
- objects = [obj["path"].lstrip(prefix).lstrip("/") for obj in list_result["objects"]]
+ objects = [obj["path"].removeprefix(prefix).lstrip("/") for obj in list_result["objects"]]
249
for item in prefixes + objects:
250
yield item
251
0 commit comments