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();
if pathtype.is_file() {
filelist.push(PathBuf::from(format!("{:?}", pathtype)));
if debugmode {
println!("input path type is FILE");
}
} else if pathtype.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)
}
}