Clear the file list every time a share starts

This commit is contained in:
Micah Lee 2019-09-01 19:59:00 -07:00
parent df568d648e
commit 1e1243c8b6
No known key found for this signature in database
GPG Key ID: 403C2657CD994F73

View File

@ -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('/'))