Commit 5db2912f by willmcgugan

Fix for multifs.remove

parent a0a0b8e4
......@@ -225,7 +225,6 @@ class MultiFS(FS):
if fs.exists(path):
fs_file = fs.open(path, mode, **kwargs)
return fs_file
raise ResourceNotFoundError(path)
@synchronize
......@@ -260,8 +259,7 @@ class MultiFS(FS):
def remove(self, path):
if self.writefs is None:
raise OperationFailedError('remove', path=path, msg="No writeable FS set")
self.writefs.remove(path)
raise ResourceNotFoundError(path)
self.writefs.remove(path)
@synchronize
def removedir(self, path, recursive=False, force=False):
......
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