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