mirror of
https://github.com/onionshare/onionshare.git
synced 2025-02-06 09:55:21 -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 = {}
|
self.files = {}
|
||||||
# This is only the root files and dirs, as opposed to all of them
|
# This is only the root files and dirs, as opposed to all of them
|
||||||
self.root_files = {}
|
self.root_files = {}
|
||||||
|
|
||||||
self.cleanup_filenames = []
|
self.cleanup_filenames = []
|
||||||
self.file_info = {'files': [], 'dirs': []}
|
self.file_info = {'files': [], 'dirs': []}
|
||||||
|
|
||||||
@ -114,6 +115,10 @@ class SendBaseModeWeb:
|
|||||||
"""
|
"""
|
||||||
self.common.log("BaseModeWeb", "build_file_list")
|
self.common.log("BaseModeWeb", "build_file_list")
|
||||||
|
|
||||||
|
# Clear the list of files
|
||||||
|
self.files = {}
|
||||||
|
self.root_files = {}
|
||||||
|
|
||||||
# Loop through the files
|
# Loop through the files
|
||||||
for filename in filenames:
|
for filename in filenames:
|
||||||
basename = os.path.basename(filename.rstrip('/'))
|
basename = os.path.basename(filename.rstrip('/'))
|
||||||
|
Loading…
x
Reference in New Issue
Block a user