Skip to content

Commit

Permalink
Be a bit more verbose
Browse files Browse the repository at this point in the history
  • Loading branch information
gblach committed Jan 14, 2023
1 parent 3d1596a commit 0321780
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -32,8 +32,16 @@ fn main() -> ExitCode {
indexfile = index::indexfile_get(cdb_r, &directory);
}

if ! args.quiet {
println!("Scanning \x1b[0;1m{}\x1b[0m directory ...",
directory.to_string_lossy());
}
index::scandir(&mut index, &directory);
index.retain(|_, v| v.len() > 1);

if ! args.quiet {
println!("Computing file hashes ...");
}
index::make_file_hashes(&mut index, &directory, &indexfile, &args);

if let Some(cdb_w) = &mut cdb_w {
Expand Down

0 comments on commit 0321780

Please sign in to comment.