diff options
author | Micah Lee <micah@micahflee.com> | 2019-09-01 19:59:00 -0700 |
---|---|---|
committer | Micah Lee <micah@micahflee.com> | 2019-09-01 19:59:00 -0700 |
commit | 1e1243c8b6d7a9a6a983ebbef0d105fb3c3a19a7 (patch) | |
tree | 8c9960a8701f4ebc7786359ee37bea0812277052 /onionshare | |
parent | df568d648ebe056fb46316f71740960ad01a34cd (diff) | |
download | onionshare-1e1243c8b6d7a9a6a983ebbef0d105fb3c3a19a7.tar.gz onionshare-1e1243c8b6d7a9a6a983ebbef0d105fb3c3a19a7.zip |
Clear the file list every time a share starts
Diffstat (limited to 'onionshare')
-rw-r--r-- | onionshare/web/send_base_mode.py | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/onionshare/web/send_base_mode.py b/onionshare/web/send_base_mode.py index 80f9e315..68f6aeca 100644 --- a/onionshare/web/send_base_mode.py +++ b/onionshare/web/send_base_mode.py @@ -29,6 +29,7 @@ class SendBaseModeWeb: self.files = {} # This is only the root files and dirs, as opposed to all of them self.root_files = {} + self.cleanup_filenames = [] self.file_info = {'files': [], 'dirs': []} @@ -114,6 +115,10 @@ class SendBaseModeWeb: """ self.common.log("BaseModeWeb", "build_file_list") + # Clear the list of files + self.files = {} + self.root_files = {} + # Loop through the files for filename in filenames: basename = os.path.basename(filename.rstrip('/')) |