From 08ba6b0ff2d336a54437c48a32c859f9cb29da35 Mon Sep 17 00:00:00 2001 From: Solderpunk Date: Wed, 18 Mar 2020 15:29:10 +0100 Subject: Fix index file detection when using --directory. --- gemfeed.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gemfeed.py b/gemfeed.py index a80711d..41bca57 100644 --- a/gemfeed.py +++ b/gemfeed.py @@ -57,7 +57,7 @@ def find_files(directory, n=10): for extension in ("gmi", "gemini"): glob_pattern = os.path.join(directory, "*.{}".format(extension)) files.extend(glob.glob(glob_pattern)) - index = "index.{}".format(extension) + index = os.path.join(directory, "index.{}".format(extension)) if index in files: files.remove(index) files = [f for f in files if is_world_readable(f)] -- cgit v1.2.3-54-g00ecf