Skip to content

Commit

Permalink
add recursive file find progress
Browse files Browse the repository at this point in the history
for profiling; may need to revert
  • Loading branch information
casperdcl committed Jan 26, 2020
1 parent 0293f71 commit 80e8270
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion dvc/repo/add.py
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,12 @@ def _find_all_targets(repo, target, recursive):
if os.path.isdir(target) and recursive:
return [
fname
for fname in repo.tree.walk_files(target)
for fname in Tqdm(
repo.tree.walk_files(target),
desc="Finding files",
bar_format=Tqdm.BAR_FMT_NOTOTAL,
leave=False,
)
if not repo.is_dvc_internal(fname)
if not Stage.is_stage_file(fname)
if not repo.scm.belongs_to_scm(fname)
Expand Down

0 comments on commit 80e8270

Please sign in to comment.