flying-circus / pyfilesystem

Automatically exported from code.google.com/p/pyfilesystem
BSD 3-Clause "New" or "Revised" License
0 stars 0 forks source link

MultiFS remove function raises unneeded exception [patch] #92

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
MultiFS remove function raises an exception regardless of the actual result of 
the remove operation. Suggested to change as follows:

    @synchronize
    def remove(self, path):
        if self.writefs is None:
            raise OperationFailedError('remove', path=path, msg="No writeable FS set")        
        if not self.writefs.exists(path):
            raise ResourceNotFoundError(path)
        self.writefs.remove(path)         

Original issue reported on code.google.com by aigar...@gmail.com on 16 Nov 2011 at 1:47

GoogleCodeExporter commented 9 years ago
Think this one is fixed in trunk.

Original comment by willmcgugan on 17 Nov 2011 at 3:38