mirror of
https://github.com/onionshare/onionshare.git
synced 2025-01-10 03:37:28 -03:00
Removes trailing slash from directories inside directories
This commit is contained in:
parent
e488085116
commit
6edab6877a
1 changed files with 1 additions and 4 deletions
|
@ -425,10 +425,7 @@ class ShareModeWeb(SendBaseModeWeb):
|
||||||
# Render directory listing
|
# Render directory listing
|
||||||
filenames = []
|
filenames = []
|
||||||
for filename in os.listdir(filesystem_path):
|
for filename in os.listdir(filesystem_path):
|
||||||
if os.path.isdir(os.path.join(filesystem_path, filename)):
|
filenames.append(filename)
|
||||||
filenames.append(filename + "/")
|
|
||||||
else:
|
|
||||||
filenames.append(filename)
|
|
||||||
filenames.sort()
|
filenames.sort()
|
||||||
return self.directory_listing(filenames, path, filesystem_path)
|
return self.directory_listing(filenames, path, filesystem_path)
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue