summaryrefslogtreecommitdiff
path: root/fs/wrapfs
diff options
context:
space:
mode:
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)