From 3e43f9d7e5d1137f2ea82c0644e4c4c24247cae8 Mon Sep 17 00:00:00 2001 From: a-moreira Date: Sat, 10 Dec 2022 19:36:28 -0300 Subject: [PATCH] allow ouch to decompress archive into existing folder --- src/commands/mod.rs | 4 ---- 1 file changed, 4 deletions(-) diff --git a/src/commands/mod.rs b/src/commands/mod.rs index a82f4d8..d4bfea3 100644 --- a/src/commands/mod.rs +++ b/src/commands/mod.rs @@ -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 {