From 41e3879e9290ce679e5f61f84768d67b4824463d Mon Sep 17 00:00:00 2001 From: Mc-muffin <8714476+Mc-muffin@users.noreply.github.com> Date: Sat, 30 Nov 2024 09:42:54 -0500 Subject: [PATCH] Delete old .sym files too --- pythonlib/games/ToolsTOR.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/pythonlib/games/ToolsTOR.py b/pythonlib/games/ToolsTOR.py index 0f3bad0..d09bb57 100644 --- a/pythonlib/games/ToolsTOR.py +++ b/pythonlib/games/ToolsTOR.py @@ -1464,7 +1464,9 @@ class ToolsTOR(ToolsTales): def clean_builds(self, path: Path) -> None: - target_files = sorted(list(path.glob("*.iso")), key=lambda x: x.name)[:-4] + targets = list(path.glob("*.iso")) + targets.extend(list(path.glob("*.sym"))) + target_files = sorted(targets, key=lambda x: x.name)[:-4] if len(target_files) != 0: print("Cleaning builds folder...") for file in target_files: