mirror of
https://github.com/glomatico/gamdl.git
synced 2026-06-13 12:15:18 +03:00
Add override to cleanup_temp_path skip check
This commit is contained in:
+5
-2
@@ -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(
|
||||
|
||||
Reference in New Issue
Block a user