mirror of
https://github.com/onionshare/onionshare.git
synced 2025-01-29 15:53:38 -05:00
Clear the file list every time a share starts
This commit is contained in:
parent
df568d648e
commit
1e1243c8b6
@ -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('/'))
|
||||
|
Loading…
x
Reference in New Issue
Block a user