130
131
except (IOError, OSError),e:
131
132
self._translate_error(e, path)
133
def put(self, relpath, f, mode=None):
134
def put_file(self, relpath, f, mode=None):
136
137
:param relpath: Location to put the contents, relative to base.
137
138
:param f: File-like or string object.
143
143
path = self._abspath(relpath)
146
146
except (IOError, OSError),e:
147
147
self._translate_error(e, path)