using except for option.
This commit is contained in:
		| @@ -15,7 +15,7 @@ fn process_compressed_files(path: &Path) -> io::Result<()> { | |||||||
|                 if ext == "rar" || ext == "zip" { |                 if ext == "rar" || ext == "zip" { | ||||||
|                     println!("UNAR: {}", entry_path.display()); |                     println!("UNAR: {}", entry_path.display()); | ||||||
|                     let parent_dir = entry_path.parent().unwrap(); |                     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") |                     let output = Command::new("unar") | ||||||
|                         .current_dir(parent_dir) |                         .current_dir(parent_dir) | ||||||
|                         .arg(filename) |                         .arg(filename) | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user