From f27804a2bbdf474f20014d3ab2c50b70432ec608 Mon Sep 17 00:00:00 2001 From: CDrummond Date: Sun, 21 Sep 2025 16:27:53 +0100 Subject: [PATCH] Only read tags if also set to write? --- src/analyse.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/analyse.rs b/src/analyse.rs index a243b86..a9f276f 100644 --- a/src/analyse.rs +++ b/src/analyse.rs @@ -643,7 +643,7 @@ pub fn analyse_files(db_path: &str, mpaths: &Vec, dry_run: bool, keep_o } } else { if !track_paths.is_empty() { - let untagged_paths = check_for_tags(&db, &mpath, track_paths, max_threads, &mut notifs); + let untagged_paths = if write_tags { check_for_tags(&db, &mpath, track_paths, max_threads, &mut notifs) } else { track_paths }; if !untagged_paths.is_empty() { log::info!("New untagged files: {}", untagged_paths.len());