mirror of
https://github.com/ouch-org/ouch.git
synced 2025-06-08 20:45:29 +00:00
Assert that output_dir exists in decompress_fn as well
This commit is contained in:
parent
1c52dc5ee4
commit
4fc49b63cc
@ -345,6 +345,7 @@ fn decompress_file(
|
|||||||
output_file_path: PathBuf,
|
output_file_path: PathBuf,
|
||||||
question_policy: QuestionPolicy,
|
question_policy: QuestionPolicy,
|
||||||
) -> crate::Result<()> {
|
) -> crate::Result<()> {
|
||||||
|
assert!(output_dir.exists());
|
||||||
let reader = fs::File::open(&input_file_path)?;
|
let reader = fs::File::open(&input_file_path)?;
|
||||||
// Zip archives are special, because they require io::Seek, so it requires it's logic separated
|
// Zip archives are special, because they require io::Seek, so it requires it's logic separated
|
||||||
// from decoder chaining.
|
// from decoder chaining.
|
||||||
|
Loading…
x
Reference in New Issue
Block a user