diff options
author | willmcgugan <willmcgugan@67cdc799-7952-0410-af00-57a81ceafa0f> | 2011-11-14 17:29:17 +0000 |
---|---|---|
committer | willmcgugan <willmcgugan@67cdc799-7952-0410-af00-57a81ceafa0f> | 2011-11-14 17:29:17 +0000 |
commit | 50a3a24ce303eae184ac943a72e5c993ee3a87be (patch) | |
tree | bb8511cfcacfb66253c172b95c617ab194e3290d /fs/multifs.py | |
parent | 515d73b5c6772cf71c7f3ffed30ed71bdd92bbcd (diff) | |
download | pyfilesystem-50a3a24ce303eae184ac943a72e5c993ee3a87be.tar.gz |
Fixes
git-svn-id: http://pyfilesystem.googlecode.com/svn/trunk@722 67cdc799-7952-0410-af00-57a81ceafa0f
Diffstat (limited to 'fs/multifs.py')
-rw-r--r-- | fs/multifs.py | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/fs/multifs.py b/fs/multifs.py index 4eaa867..b430046 100644 --- a/fs/multifs.py +++ b/fs/multifs.py @@ -203,6 +203,8 @@ class MultiFS(FS): fs = self._delegate_search(path) if fs is not None: return fs.getsyspath(path, allow_none=allow_none) + if allow_none: + return None raise ResourceNotFoundError(path) @synchronize @@ -256,6 +258,12 @@ class MultiFS(FS): return list(set(paths)) @synchronize + def makedir(self, path, recursive=False, allow_recreate=False): + if self.writefs is None: + raise OperationFailedError('makedir', path=path, msg="No writeable FS set") + self.writefs.makedir(path, recursive=recursive, allow_recreate=allow_recreate) + + @synchronize def remove(self, path): if self.writefs is None: raise OperationFailedError('remove', path=path, msg="No writeable FS set") |