made romoval content verbose

This commit is contained in:
Tristan Smith 2024-04-07 20:27:30 -04:00
parent 069c88fc45
commit a54c39fd46

View file

@ -14,6 +14,8 @@ def filter_and_repack_zip(zip_path):
for file in original_zip.namelist(): for file in original_zip.namelist():
if "(USA" in file or "(USA, Europe)" in file: if "(USA" in file or "(USA, Europe)" in file:
new_zip.writestr(file, original_zip.read(file)) new_zip.writestr(file, original_zip.read(file))
else:
print(f"Removing {file} from {zip_path}")
# Remove the original file and move the new file to the original location # Remove the original file and move the new file to the original location
os.remove(zip_path) os.remove(zip_path)