From d8d0d1fddd8059fd8d5057a06f1f8ca010240307 Mon Sep 17 00:00:00 2001 From: endernon Date: Fri, 6 Dec 2024 23:11:04 +0000 Subject: [PATCH] assign some prints to debugmode instead --- src/main.rs | 13 ++++++++++--- 1 file changed, 10 insertions(+), 3 deletions(-) diff --git a/src/main.rs b/src/main.rs index 6a6356b..599325b 100644 --- a/src/main.rs +++ b/src/main.rs @@ -39,10 +39,17 @@ fn main() { let pathtype = metadata(&pathfr).unwrap(); if pathtype.is_file() { filelist.push(PathBuf::from(format!("{:?}", pathtype))); - println!("input path type is FILE"); + if debugmode { + println!("input path type is FILE"); + } } else if pathtype.is_dir() { - println!("input path type is DIR"); + if debugmode { + println!("input path type is DIR"); + } if pathfr.ends_with("/") { + if debugmode { + println!("Popped trailing / off the end") + } pathfr.pop(); } // parse file list if it's a dir @@ -72,7 +79,7 @@ fn main() { // } for thatpath in filelist { - println!("File: {:?}",thatpath); + println!("Filename: {:?}",thatpath); idk::encoder(thatpath.to_owned(), thatpath) } } \ No newline at end of file