From 80a0e378f3996b6af969842bb2bc2eb78f27bdb0 Mon Sep 17 00:00:00 2001 From: RichardG867 Date: Wed, 13 Apr 2022 18:55:10 -0300 Subject: [PATCH] Add auto-rename option to 7-Zip invocation, fixes Siemens Nixdorf WinImage SFX --- biostools/extractors.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/biostools/extractors.py b/biostools/extractors.py index e15c33f..059b96f 100644 --- a/biostools/extractors.py +++ b/biostools/extractors.py @@ -212,7 +212,7 @@ class ArchiveExtractor(Extractor): # Run 7z command to extract the archive. # The dummy password prevents any password prompts from stalling 7z. - subprocess.run(['7z', 'x', '-y', '-ppassword', '--', link_path], stdout=self._devnull, stderr=subprocess.STDOUT, cwd=dest_dir) + subprocess.run(['7z', 'x', '-y', '-aou', '-ppassword', '--', link_path], stdout=self._devnull, stderr=subprocess.STDOUT, cwd=dest_dir) # Remove temporary symlink. if link_path != file_path_abs: