Oops, need to call directory_listing with filesystem_path

This commit is contained in:
Micah Lee 2019-09-01 16:02:10 -07:00
parent 973db941ec
commit a0759cedcd
No known key found for this signature in database
GPG Key ID: 403C2657CD994F73
2 changed files with 2 additions and 2 deletions

View File

@ -196,7 +196,7 @@ class ShareModeWeb(SendBaseModeWeb):
else:
filenames.append(filename)
filenames.sort()
return self.directory_listing(filenames, path)
return self.directory_listing(filenames, path, filesystem_path)
# If it's a file
elif os.path.isfile(filesystem_path):

View File

@ -98,7 +98,7 @@ class WebsiteModeWeb(SendBaseModeWeb):
# Root directory listing
filenames = list(self.root_files)
filenames.sort()
return self.directory_listing(filenames, path, filesystem_path)
return self.directory_listing(filenames, path)
else:
# If the path isn't found, throw a 404