Skip to content

Commit 220c28b

Browse files
committed
Adds note on possibly redundant condition in FsspecStore.delete_dir()
1 parent f21f1c2 commit 220c28b

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/zarr/storage/_fsspec.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -273,6 +273,7 @@ async def delete_dir(self, prefix: str) -> None:
273273

274274
path_to_delete = _dereference_path(self.path, prefix)
275275

276+
# this is probably the same condition as `if self.fs.async_impl`
276277
if hasattr(self.fs, "_rm") and inspect.iscoroutinefunction(self.fs._rm):
277278
with suppress(self.allowed_exceptions):
278279
await self.fs._rm(path_to_delete, recursive=True)

0 commit comments

Comments
 (0)