diff --git a/src/main.rs b/src/main.rs index a447be1..93021f3 100644 --- a/src/main.rs +++ b/src/main.rs @@ -15,7 +15,7 @@ fn process_compressed_files(path: &Path) -> io::Result<()> { if ext == "rar" || ext == "zip" { println!("UNAR: {}", entry_path.display()); let parent_dir = entry_path.parent().unwrap(); - let filename = entry_path.file_name().to_str().unwrap(); + let filename = entry_path.file_name().expect("WRONG.").to_str().unwrap(); let output = Command::new("unar") .current_dir(parent_dir) .arg(filename)