aboutsummaryrefslogtreecommitdiff
path: root/cli/onionshare_cli/web/send_base_mode.py
diff options
context:
space:
mode:
authorMicah Lee <micah@micahflee.com>2021-12-01 20:34:54 -0800
committerMicah Lee <micah@micahflee.com>2021-12-01 20:34:54 -0800
commit8ec9a24af1402b0c86b1e811b5e6925d39d3bcdb (patch)
tree87ff2a9989ce5acb278590c103746dc31e536e56 /cli/onionshare_cli/web/send_base_mode.py
parent109d63a10c90c656409c6a3d66e146becc151b0b (diff)
downloadonionshare-8ec9a24af1402b0c86b1e811b5e6925d39d3bcdb.tar.gz
onionshare-8ec9a24af1402b0c86b1e811b5e6925d39d3bcdb.zip
Explicitly cleanup temp files and dirs
Diffstat (limited to 'cli/onionshare_cli/web/send_base_mode.py')
-rw-r--r--cli/onionshare_cli/web/send_base_mode.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/cli/onionshare_cli/web/send_base_mode.py b/cli/onionshare_cli/web/send_base_mode.py
index 7b587182..d786b8b5 100644
--- a/cli/onionshare_cli/web/send_base_mode.py
+++ b/cli/onionshare_cli/web/send_base_mode.py
@@ -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)