Commit 024e4dc9 by rfkelly0

SubFS: directly call setcontents() on the wrapped FS

parent 30fc0f27
......@@ -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)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment