Skip to content

Commit c1f0ea5

Browse files
committed
don't normalize paths in StorePath.delete_dir
1 parent f74e53a commit c1f0ea5

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)