mirror of
https://github.com/onionshare/onionshare.git
synced 2025-07-26 16:15:51 -04:00
Clear the file list every time a share starts
This commit is contained in:
parent
15e8ec4321
commit
77d5b29c76
1 changed files with 5 additions and 0 deletions
|
@ -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…
Add table
Add a link
Reference in a new issue