diff --git a/src/main.rs b/src/main.rs index 3a97ee5..e3fd133 100644 --- a/src/main.rs +++ b/src/main.rs @@ -91,8 +91,6 @@ fn main() { let mut thread_pool: Vec> = Vec::new(); for selection in actual_selection { - // TODO: forget the assumption that the user won't try to sort like 100 dirs at the same - // time let thread = thread::spawn(move || match sort_files(selection, false) { Ok(_) => {} Err(err) => eprintln!("{}", err), @@ -108,16 +106,12 @@ fn main() { // TODO: implement recuriveness fn sort_files(selection: String, _recursive: bool) -> Result<(), Box> { - println!("Sorting {}", selection); - let search_path = CONFIG .get() .and_then(|config| config.sources.get(&selection)) .cloned() .unwrap(); - println!("Searching in {}", search_path.display()); - let dir = fs::read_dir(search_path)?; let file_types = [