Esempio n. 1
0
 def replace(self, src, dst):
     return smbclient.replace(self._join_path(src), self._join_path(dst), **self._conn_kwargs)
Esempio n. 2
0
 def commit(self):
     """Move temp file to definitive on success."""
     # TODO: use transaction support in SMB protocol
     smbclient.replace(self.temp, self.path)