Commit 5db2912f by willmcgugan

Fix for multifs.remove

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