summaryrefslogtreecommitdiff
path: root/src/main.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/main.rs')
-rw-r--r--src/main.rs8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/main.rs b/src/main.rs
index bb2a716..5273921 100644
--- a/src/main.rs
+++ b/src/main.rs
@@ -91,10 +91,10 @@ fn main() -> Result<()> {
if path.is_none() && !args.get_flag("clean") && !args.get_flag("doit") {
let count = conn.get_toencode_number().await?;
println!("Files to reencode:\t{count}");
- } else if let Some(realpath) = path {
- if !args.get_flag("doit") {
- files::index_files_recursively(realpath, &conn).await?;
- }
+ }
+
+ if let Some(realpath) = path {
+ files::index_files_recursively(realpath, &conn).await?;
}
if args.get_flag("clean") {