Example #1
0
File: ssh.py Project: 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)
Example #2
0
File: ssh.py Project: 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)