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 getsyspath ignores allow_none param and breaks copy() [patch] #88

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
MultiFS implementation of getsyspath raises an exception instead of returning 
None when the file is not found and allow_none is set. In particular this 
breaks the base copy() function with the target being an non-existing file in a 
MultiFS.

To fix this add lines: 
        if allow_none:
            return None
before
        raise ResourceNotFoundError(path)

in multifs.py in function getsyspath (line 187).

Original issue reported on code.google.com by aigar...@gmail.com on 10 Nov 2011 at 12:57

GoogleCodeExporter commented 9 years ago
Thanks, fixed in trunk.

Original comment by willmcgugan on 14 Nov 2011 at 5:29