mirror of
https://github.com/onionshare/onionshare.git
synced 2025-02-11 20:29:15 -05:00
Oops, need to call directory_listing with filesystem_path
This commit is contained in:
parent
bffbc1930d
commit
1e83a1bfd6
@ -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):
|
||||||
|
@ -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
|
||||||
|
Loading…
x
Reference in New Issue
Block a user