Skip to content

Commit

Permalink
remote: fix pull error for large file with aliyun-oss
Browse files Browse the repository at this point in the history
  • Loading branch information
Gary Yuan committed Dec 8, 2020
1 parent c4f9231 commit 2f41b5c
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions dvc/tree/oss.py
Original file line number Diff line number Diff line change
Expand Up @@ -128,6 +128,11 @@ def _download(
self, from_info, to_file, name=None, no_progress_bar=False, **_kwargs
):
with Tqdm(desc=name, disable=no_progress_bar, bytes=True) as pbar:
self.oss_service.get_object_to_file(
from_info.path, to_file, progress_callback=pbar.update_to
import oss2

oss2.resumable_download(
self.oss_service,
from_info.path,
to_file,
progress_callback=pbar.update_to,
)

0 comments on commit 2f41b5c

Please sign in to comment.