mirror of
https://github.com/onionshare/onionshare.git
synced 2025-02-14 05:31:25 -05:00
Removes trailing slash from directories inside directories
This commit is contained in:
parent
460c25f0f3
commit
19da3d73a3
@ -425,10 +425,7 @@ class ShareModeWeb(SendBaseModeWeb):
|
||||
# Render directory listing
|
||||
filenames = []
|
||||
for filename in os.listdir(filesystem_path):
|
||||
if os.path.isdir(os.path.join(filesystem_path, filename)):
|
||||
filenames.append(filename + "/")
|
||||
else:
|
||||
filenames.append(filename)
|
||||
filenames.append(filename)
|
||||
filenames.sort()
|
||||
return self.directory_listing(filenames, path, filesystem_path)
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user