diff --git a/src/main.rs b/src/main.rs index 5e58e12..e12cdbf 100755 --- a/src/main.rs +++ b/src/main.rs @@ -57,6 +57,29 @@ fn main() -> Result<(), Box> { .is_some_and(|ext| extra_files.iter().any(|x| x == ext)) { continue; + } else { + let mut input = String::new(); + + eprintln!("Found files that aren't music files: {}", path.display()); + eprintln!(" [1] Copy all files"); + eprintln!(" [2] Skip non-music files"); + eprintln!(" [3] Cancel import"); + + eprint!("> "); + io::stdin() + .read_line(&mut input) + .expect("failed to read input"); + + let mut other_files: Vec; + match input.trim() { + "1" => { + other_files.extend(&path); + } + "2" => {} + _ => { + println!("Invalid option."); + } + } } let tag = get_metadata(&path);