diff options
author | Micah Lee <micah@micahflee.com> | 2019-09-01 16:02:10 -0700 |
---|---|---|
committer | Micah Lee <micah@micahflee.com> | 2019-09-01 16:02:10 -0700 |
commit | a0759cedcd085d150d70a111629e4940f76e4f85 (patch) | |
tree | 2a59fa17c3262e327676f57166653a43c4d3da48 /onionshare | |
parent | 973db941ecce380f5a74193baa5c33d6af999644 (diff) | |
download | onionshare-a0759cedcd085d150d70a111629e4940f76e4f85.tar.gz onionshare-a0759cedcd085d150d70a111629e4940f76e4f85.zip |
Oops, need to call directory_listing with filesystem_path
Diffstat (limited to 'onionshare')
-rw-r--r-- | onionshare/web/share_mode.py | 2 | ||||
-rw-r--r-- | onionshare/web/website_mode.py | 2 |
2 files changed, 2 insertions, 2 deletions
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 |