Explicitly cleanup temp files and dirs

This commit is contained in:
Micah Lee 2021-12-01 20:34:54 -08:00
parent 926359de3c
commit 2ff5f53c69
6 changed files with 38 additions and 26 deletions

View file

@ -202,6 +202,9 @@ class SendBaseModeWeb:
file_to_download = self.gzip_individual_files[filesystem_path]
filesize = os.path.getsize(self.gzip_individual_files[filesystem_path])
# Cleanup this temp file
self.web.cleanup_tempfiles.append(gzip_file)
else:
file_to_download = filesystem_path
filesize = os.path.getsize(filesystem_path)