Skip to content

Commit 90940a0

Browse files
committed
fixup s3
1 parent 73d53d7 commit 90940a0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/zarr/store/remote.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -202,7 +202,7 @@ async def list_dir(self, prefix: str) -> AsyncGenerator[str, None]:
202202
except FileNotFoundError:
203203
return
204204
for onefile in (a.replace(prefix + "/", "") for a in allfiles):
205-
yield onefile
205+
yield onefile.removeprefix(self.path).removeprefix("/")
206206

207207
async def list_prefix(self, prefix: str) -> AsyncGenerator[str, None]:
208208
for onefile in await self._fs._ls(prefix, detail=False):

0 commit comments

Comments
 (0)