Unverified Commit 65438e9e authored by Philip Meier's avatar Philip Meier Committed by GitHub
Browse files

remove extraced archive if flag was set (#5055)

parent 5dc1e20b
......@@ -407,6 +407,8 @@ def extract_archive(from_path: str, to_path: Optional[str] = None, remove_finish
extractor = _ARCHIVE_EXTRACTORS[archive_type]
extractor(from_path, to_path, compression)
if remove_finished:
os.remove(from_path)
return to_path
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment