Commit b182e75e by rfkelly0

MultiFS: support "force" argument in removedir

parent 1c343974
...@@ -205,10 +205,10 @@ class MultiFS(FS): ...@@ -205,10 +205,10 @@ class MultiFS(FS):
raise ResourceNotFoundError(path) raise ResourceNotFoundError(path)
@synchronize @synchronize
def removedir(self, path, recursive=False): def removedir(self, path, recursive=False, force=False):
for fs in self: for fs in self:
if fs.isdir(path): if fs.isdir(path):
fs.removedir(path, recursive) fs.removedir(path, recursive=recursive, force=force)
return return
raise ResourceNotFoundError(path) raise ResourceNotFoundError(path)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment