feat: implemented test case for iterator

Spent an hour trying to use a .iter(), just to realize it was already an iterator
This commit is contained in:
Nickiel12 2022-12-12 18:40:40 -08:00
parent 7d3cd17413
commit b6a41c8fb2

View file

@ -1,6 +1,5 @@
use clap::Parser;
use dirs_next;
use scan_dir::ScanDir;
pub mod file_operations;
@ -48,7 +47,13 @@ fn main() {
println!("Music directory is: {:?}", dirs_next::audio_dir());
}
file_operations::scan_music_dir(music_dir).unwrap();
let music_scanner = file_operations::MusicScanner::new(music_dir);
for file_batch in music_scanner {
for filepath in file_batch {
println!("{:?}", filepath);
}
}
println!("{:?}", cli);
}