summaryrefslogtreecommitdiff
path: root/fs/wrapfs
diff options
context:
space:
mode:
authorrfkelly0 <rfkelly0@67cdc799-7952-0410-af00-57a81ceafa0f>2010-11-05 02:32:00 +0000
committerrfkelly0 <rfkelly0@67cdc799-7952-0410-af00-57a81ceafa0f>2010-11-05 02:32:00 +0000
commit4e56e7b25b33a728372dd6933285dddb47144085 (patch)
tree475fb3ab6414fc9997dbd4f2772e7c48460888a3 /fs/wrapfs
parent4175c1aa80999edf94718d6338e7088703d57d2f (diff)
downloadpyfilesystem-4e56e7b25b33a728372dd6933285dddb47144085.tar.gz
SubFS: directly call setcontents() on the wrapped FS
git-svn-id: http://pyfilesystem.googlecode.com/svn/trunk@519 67cdc799-7952-0410-af00-57a81ceafa0f
Diffstat (limited to 'fs/wrapfs')
-rw-r--r--fs/wrapfs/subfs.py4
1 files changed, 4 insertions, 0 deletions
diff --git a/fs/wrapfs/subfs.py b/fs/wrapfs/subfs.py
index 3cc5ea4..83d9da5 100644
--- a/fs/wrapfs/subfs.py
+++ b/fs/wrapfs/subfs.py
@@ -44,6 +44,10 @@ class SubFS(WrapFS):
else:
return "File in sub dir of %s" % str(self.wrapped_fs)
+ def setcontents(self,path,contents):
+ path = self._encode(path)
+ return self.wrapped_fs.setcontents(path,contents)
+
def opendir(self, path):
if not self.exists(path):
raise ResourceNotFoundError(path)