mirror of
https://github.com/onionshare/onionshare.git
synced 2025-05-02 06:26:10 -04:00
Explicitly cleanup temp files and dirs
This commit is contained in:
parent
926359de3c
commit
2ff5f53c69
6 changed files with 38 additions and 26 deletions
|
@ -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)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue