mirror of
https://github.com/86Box/bios-tools.git
synced 2026-02-23 18:08:21 -07:00
Only remove successfully-extracted ISOs
This commit is contained in:
@@ -792,11 +792,12 @@ class ISOExtractor(ArchiveExtractor):
|
||||
# Finish new file.
|
||||
f_o.close()
|
||||
|
||||
# Remove ISO file.
|
||||
try:
|
||||
os.remove(file_path)
|
||||
except:
|
||||
pass
|
||||
# Remove ISO file if it was successfully extracted.
|
||||
if ret:
|
||||
try:
|
||||
os.remove(file_path)
|
||||
except:
|
||||
pass
|
||||
|
||||
return ret
|
||||
|
||||
|
||||
Reference in New Issue
Block a user