Skip to content

Commit 26b6d8d

Browse files
d-v-bjhamman
andauthored
don't normalize paths in StorePath.delete_dir (#2493)
Co-authored-by: Joe Hamman <[email protected]>
1 parent ec0efad commit 26b6d8d

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

src/zarr/storage/common.py

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -160,10 +160,7 @@ async def delete_dir(self) -> None:
160160
"""
161161
Delete all keys with the given prefix from the store.
162162
"""
163-
path = self.path
164-
if not path.endswith("/"):
165-
path += "/"
166-
await self.store.delete_dir(path)
163+
await self.store.delete_dir(self.path)
167164

168165
async def set_if_not_exists(self, default: Buffer) -> None:
169166
"""

0 commit comments

Comments
 (0)