Add override to cleanup_temp_path skip check

This commit is contained in:
Rafael Moraes
2025-08-31 12:10:32 -03:00
parent 42d10d555a
commit b17c31d416
+5 -2
View File
@@ -639,8 +639,11 @@ class Downloader:
encoding="utf8",
)
def cleanup_temp_path(self):
if self.temp_path.exists() and not self.skip_processing:
def cleanup_temp_path(self, override_skip_processing_check: bool = False) -> None:
if self.skip_processing and not override_skip_processing_check:
return
if self.temp_path.exists():
shutil.rmtree(self.temp_path)
def _final_processing(