From 06f2c1b838331ee3850c42f4634436ea02f28d65 Mon Sep 17 00:00:00 2001 From: Lionel Dricot Date: Thu, 17 Feb 2022 10:02:45 +0100 Subject: [PATCH] how a directory went to get mime ? --- offpunk.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/offpunk.py b/offpunk.py index fad4bc0..cde1e5d 100755 --- a/offpunk.py +++ b/offpunk.py @@ -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()