Include trailing '/' on directory links in file list mode.

This allows directory contents to properly reference included resources
using relative links.
This commit is contained in:
Eric Bavier 2023-03-10 22:23:35 -06:00
parent 6979ef4803
commit 727c01fb75
No known key found for this signature in database
GPG Key ID: BC45CA67E2F8D007

View File

@ -169,7 +169,7 @@ class SendBaseModeWeb:
if is_dir:
dirs.append(
{"link": os.path.join(f"/{path}", filename), "basename": filename}
{"link": os.path.join(f"/{path}", filename, ""), "basename": filename}
)
else:
size = os.path.getsize(this_filesystem_path)