add / at the end of url if cache is a dir

This commit is contained in:
Lionel Dricot 2021-12-17 15:15:09 +01:00
parent 2e6bd28563
commit ba429946ec
1 changed files with 1 additions and 0 deletions

View File

@ -159,6 +159,7 @@ class GeminiItem():
# finish by "/". Else, the cache with create a file, not a folder.
if self.path == "" or os.path.isdir(self.cache_path):
self.cache_path += "/"
self.url += "/"
if self.cache_path.endswith("/"):
self.cache_path += "index.gmi"