We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 3b787a4 commit d901734Copy full SHA for d901734
src/zarr/storage/remote.py
@@ -96,7 +96,10 @@ async def clear(self) -> None:
96
async def empty(self) -> bool:
97
# TODO: it would be nice if we didn't have to list all keys here
98
# it should be possible to stop after the first key is discovered
99
- return not await self.fs._ls(self.path)
+ try:
100
+ return not await self.fs._ls(self.path)
101
+ except FileNotFoundError:
102
+ return True
103
104
def with_mode(self, mode: AccessModeLiteral) -> Self:
105
return type(self)(
0 commit comments