mirror of
https://github.com/Stone-Red-Code/dvc.git
synced 2026-11-10 23:10:42 +01:00
(cherry picked from commit 9ad1e0e159)
Co-authored-by: Batuhan Taskaya <[email protected]>
This commit is contained in:
co-authored by
Batuhan Taskaya
parent
bd39e4eb1a
commit
fb4c2e5eb1
@@ -189,6 +189,7 @@ class SSHConnection:
|
||||
desc=progress_title or os.path.basename(src),
|
||||
disable=no_progress_bar,
|
||||
bytes=True,
|
||||
total=self.getsize(src),
|
||||
) as pbar:
|
||||
self.sftp.get(src, dest, callback=pbar.update_to)
|
||||
|
||||
@@ -221,7 +222,10 @@ class SSHConnection:
|
||||
progress_title = posixpath.basename(dest)
|
||||
|
||||
with Tqdm(
|
||||
desc=progress_title, disable=no_progress_bar, bytes=True
|
||||
desc=progress_title,
|
||||
disable=no_progress_bar,
|
||||
bytes=True,
|
||||
total=os.path.getsize(src),
|
||||
) as pbar:
|
||||
self.sftp.put(src, tmp_file, callback=pbar.update_to)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user