how a directory went to get mime ?

This commit is contained in:
Lionel Dricot 2022-02-17 10:02:45 +01:00
parent cf4dc86b03
commit 06f2c1b838
1 changed files with 1 additions and 1 deletions

View File

@ -951,7 +951,7 @@ class GeminiItem():
self.links = []
print("We return False because path is too long")
return False
if os.path.exists(self._cache_path):
if os.path.exists(self._cache_path) and not os.path.isdir(self._cache_path):
if validity > 0 :
last_modification = self.cache_last_modified()
now = time.time()