Commit e1d17c8b by rfkelly0

use convert_os_errors in OSFS.setcontents

parent 1defa444
...@@ -206,6 +206,10 @@ class OSFS(OSFSXAttrMixin, OSFSWatchMixin, FS): ...@@ -206,6 +206,10 @@ class OSFS(OSFSXAttrMixin, OSFSWatchMixin, FS):
raise raise
@convert_os_errors @convert_os_errors
def setcontents(self, path, contents, chunk_size=64*1024):
return super(OSFS,self).setcontents(path, contents, chunk_size)
@convert_os_errors
def exists(self, path): def exists(self, path):
path = self.getsyspath(path) path = self.getsyspath(path)
return os.path.exists(path) return os.path.exists(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