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 bffbc1930d
commit 1e83a1bfd6
2 changed files with 2 additions and 2 deletions

View File

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

View File

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