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 d04d008 commit 9210483Copy full SHA for 9210483
zarr/storage.py
@@ -132,9 +132,17 @@ def listdir(self, path: str = "") -> List[str]:
132
return _listdir_from_keys(self, path)
133
134
def rename(self, src_path: str, dst_path: str) -> None:
135
+ if not self.is_erasable():
136
+ raise NotImplementedError(
137
+ f'{type(self)} is not erasable, cannot call "rmdir"'
138
+ )
139
_rename_from_keys(self, src_path, dst_path)
140
141
def rmdir(self, path: str = "") -> None:
142
143
144
145
146
path = normalize_storage_path(path)
147
_rmdir_from_keys(self, path)
148
0 commit comments