Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 2 additions & 5 deletions dvc/remote/base.py
Original file line number Diff line number Diff line change
Expand Up @@ -590,8 +590,7 @@ def _download_dir(
):
from_infos = list(self.walk_files(from_info))
to_infos = (
to_info / info.relative_to(from_info)
for info in from_infos
to_info / info.relative_to(from_info) for info in from_infos
)

with ThreadPoolExecutor(max_workers=self.JOBS) as executor:
Expand All @@ -602,9 +601,7 @@ def _download_dir(
file_mode=file_mode,
dir_mode=dir_mode,
)
futures = executor.map(
download_files, from_infos, to_infos
)
futures = executor.map(download_files, from_infos, to_infos)
with Tqdm(
futures,
total=len(from_infos),
Expand Down