assign some prints to debugmode instead

This commit is contained in:
endernon 2024-12-06 23:11:04 +00:00
parent 5c2f50d446
commit d8d0d1fddd

View file

@ -39,10 +39,17 @@ fn main() {
let pathtype = metadata(&pathfr).unwrap(); let pathtype = metadata(&pathfr).unwrap();
if pathtype.is_file() { if pathtype.is_file() {
filelist.push(PathBuf::from(format!("{:?}", pathtype))); 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() { } else if pathtype.is_dir() {
println!("input path type is DIR"); if debugmode {
println!("input path type is DIR");
}
if pathfr.ends_with("/") { if pathfr.ends_with("/") {
if debugmode {
println!("Popped trailing / off the end")
}
pathfr.pop(); pathfr.pop();
} }
// parse file list if it's a dir // parse file list if it's a dir
@ -72,7 +79,7 @@ fn main() {
// } // }
for thatpath in filelist { for thatpath in filelist {
println!("File: {:?}",thatpath); println!("Filename: {:?}",thatpath);
idk::encoder(thatpath.to_owned(), thatpath) idk::encoder(thatpath.to_owned(), thatpath)
} }
} }