We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent fc08f31 commit 22c3a69Copy full SHA for 22c3a69
src/zarr/storage/_fsspec.py
@@ -341,7 +341,7 @@ async def set_partial_values(
341
async def list(self) -> AsyncIterator[str]:
342
# docstring inherited
343
allfiles = await self.fs._find(self.path, detail=False, withdirs=False)
344
- for onefile in (a.replace(self.path + "/", "") for a in allfiles):
+ for onefile in (a.removeprefix(self.path + "/") for a in allfiles):
345
yield onefile
346
347
async def list_dir(self, prefix: str) -> AsyncIterator[str]:
0 commit comments