summaryrefslogtreecommitdiff
path: root/src/main.rs
diff options
context:
space:
mode:
authorjakka <jakkadoujin@gmail.com>2025-06-19 15:34:40 +0300
committerjakka <jakkadoujin@gmail.com>2025-06-19 15:34:40 +0300
commite2d117e6ca1addeeb0dcdb11e5cf357f9fae1989 (patch)
tree174edfd557819edeeea3334edecc57cc6be64374 /src/main.rs
parent1fea9b682b6ed08b17495374a8ede21b51101faa (diff)
added progress barsv0.1.1
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") {