diff --git a/src/commands.rs b/src/commands.rs index 4605f02..17f6f7b 100644 --- a/src/commands.rs +++ b/src/commands.rs @@ -345,6 +345,7 @@ fn decompress_file( output_file_path: PathBuf, question_policy: QuestionPolicy, ) -> crate::Result<()> { + assert!(output_dir.exists()); let reader = fs::File::open(&input_file_path)?; // Zip archives are special, because they require io::Seek, so it requires it's logic separated // from decoder chaining.