Skip to content

Commit f047b8e

Browse files
committed
Fix fs.wrap.WrapReadOnly not blocking the removetree method
1 parent 20e260b commit f047b8e

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

fs/wrap.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -203,6 +203,11 @@ def removedir(self, path):
203203
self.check()
204204
raise ResourceReadOnly(path)
205205

206+
def removetree(self, path):
207+
# type: (Text) -> None
208+
self.check()
209+
raise ResourceReadOnly(path)
210+
206211
def setinfo(self, path, info):
207212
# type: (Text, RawInfo) -> None
208213
self.check()

0 commit comments

Comments
 (0)