Remove trailing bracket from directory name (#53)

This commit is contained in:
dbxnr 2021-02-12 02:32:32 +00:00 committed by GitHub
parent 6bda66b75f
commit dea16e6596
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -235,7 +235,7 @@ class StaticDirectoryApplication(JetforceApplication):
""" """
Auto-generate a text/gemini document based on the contents of the file system. Auto-generate a text/gemini document based on the contents of the file system.
""" """
buffer = f"Directory: /{url_path}]\r\n".encode() buffer = f"Directory: /{url_path}\r\n".encode()
if url_path.parent != url_path: if url_path.parent != url_path:
buffer += f"=>/{url_path.parent}\t..\r\n".encode() buffer += f"=>/{url_path.parent}\t..\r\n".encode()