コード例 #1
0
ファイル: ssh.py プロジェクト: rpatil524/dvc
 def put_file(self,
              from_file,
              to_info,
              callback=DEFAULT_CALLBACK,
              **kwargs):
     with as_atomic(self, to_info) as tmp_file:
         super().put_file(from_file, tmp_file, callback=callback, **kwargs)
コード例 #2
0
ファイル: ssh.py プロジェクト: rpatil524/dvc
 def upload_fobj(self, fobj, to_info, **kwargs):
     with as_atomic(self, to_info) as tmp_file:
         super().upload_fobj(fobj, tmp_file, **kwargs)