mirror of
https://github.com/onionshare/onionshare.git
synced 2024-10-01 01:35:40 -04:00
Oops, need to call directory_listing with filesystem_path
This commit is contained in:
parent
973db941ec
commit
a0759cedcd
@ -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):
|
||||
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user