diff --git a/onionshare/web/share_mode.py b/onionshare/web/share_mode.py index 8558a996..6f847fe7 100644 --- a/onionshare/web/share_mode.py +++ b/onionshare/web/share_mode.py @@ -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): diff --git a/onionshare/web/website_mode.py b/onionshare/web/website_mode.py index bb712a59..9ddbf89b 100644 --- a/onionshare/web/website_mode.py +++ b/onionshare/web/website_mode.py @@ -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