mirror of
https://github.com/CDrummond/bliss-analyser.git
synced 2025-04-08 05:00:02 +03:00
Check if there are files to scan
This commit is contained in:
parent
5746bbc039
commit
6bed226057
@ -157,9 +157,11 @@ pub fn analyse_files(db_path: &str, mpath: &Path, path: &Path, dry_run:bool, kee
|
||||
}
|
||||
if !dry_run {
|
||||
to_add.sort();
|
||||
match analyse_new_files(&db, mpath, to_add) {
|
||||
Ok(_) => { },
|
||||
Err(_) => { }
|
||||
if to_add.len()>0 {
|
||||
match analyse_new_files(&db, mpath, to_add) {
|
||||
Ok(_) => { },
|
||||
Err(_) => { }
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user