mirror of
https://github.com/loot/libloot.git
synced 2026-07-27 14:16:01 -07:00
Fixed archiver error if temp_dir doesn't exist.
This commit is contained in:
+2
-1
@@ -39,7 +39,8 @@ if (len(sys.argv) > 1):
|
||||
archive_name = sys.argv[1]
|
||||
|
||||
# Delete the temporary folder if it already exists.
|
||||
shutil.rmtree(temp_path)
|
||||
if os.path.exists(temp_path):
|
||||
shutil.rmtree(temp_path)
|
||||
|
||||
# First make sure that the temporary folder for the archive exists.
|
||||
if not os.path.exists(temp_path):
|
||||
|
||||
Reference in New Issue
Block a user