From a54c39fd466ab093c9d6981302e3de28cd9b1ce6 Mon Sep 17 00:00:00 2001 From: Tristan Smith Date: Sun, 7 Apr 2024 20:27:30 -0400 Subject: [PATCH] made romoval content verbose --- zipremove.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/zipremove.py b/zipremove.py index 90eb8d9..e4813ee 100644 --- a/zipremove.py +++ b/zipremove.py @@ -14,6 +14,8 @@ def filter_and_repack_zip(zip_path): for file in original_zip.namelist(): if "(USA" in file or "(USA, Europe)" in 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 os.remove(zip_path)