mirror of
https://github.com/ouch-org/ouch.git
synced 2025-06-06 11:35:45 +00:00
Merge pull request #321 from a-moreira/issue-296
allow ouch to decompress archive into existing folder
This commit is contained in:
commit
7b26af23c4
@ -236,10 +236,6 @@ pub fn run(
|
||||
// The directory that will contain the output files
|
||||
// We default to the current directory if the user didn't specify an output directory with --dir
|
||||
let output_dir = if let Some(dir) = output_dir {
|
||||
if !utils::clear_path(&dir, question_policy)? {
|
||||
// User doesn't want to overwrite
|
||||
return Ok(());
|
||||
}
|
||||
utils::create_dir_if_non_existent(&dir)?;
|
||||
dir
|
||||
} else {
|
||||
|
Loading…
x
Reference in New Issue
Block a user