From c1f0ea59a12ed0edb37a3203cae8d96e78904f46 Mon Sep 17 00:00:00 2001 From: Davis Vann Bennett Date: Fri, 15 Nov 2024 17:42:31 +0100 Subject: [PATCH] don't normalize paths in StorePath.delete_dir --- src/zarr/storage/common.py | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/src/zarr/storage/common.py b/src/zarr/storage/common.py index 0485a3357..1e3396741 100644 --- a/src/zarr/storage/common.py +++ b/src/zarr/storage/common.py @@ -160,10 +160,7 @@ async def delete_dir(self) -> None: """ Delete all keys with the given prefix from the store. """ - path = self.path - if not path.endswith("/"): - path += "/" - await self.store.delete_dir(path) + await self.store.delete_dir(self.path) async def set_if_not_exists(self, default: Buffer) -> None: """