From a66cc0e5030b9a44b2baae898b3469f260038bf4 Mon Sep 17 00:00:00 2001 From: Casper da Costa-Luis Date: Thu, 28 Nov 2019 00:59:11 +0000 Subject: [PATCH] add saving progress for files in dirs --- dvc/remote/base.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/dvc/remote/base.py b/dvc/remote/base.py index 33ec566bb7..42b283ba37 100644 --- a/dvc/remote/base.py +++ b/dvc/remote/base.py @@ -493,7 +493,9 @@ def _save_dir(self, path_info, checksum): cache_info = self.checksum_to_path_info(checksum) dir_info = self.get_dir_cache(checksum) - for entry in dir_info: + for entry in Tqdm( + dir_info, desc="Saving " + path_info.name, unit="file" + ): entry_info = path_info / entry[self.PARAM_RELPATH] entry_checksum = entry[self.PARAM_CHECKSUM] self._save_file(entry_info, entry_checksum, save_link=False)