summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSolderpunk <solderpunk@sdf.org>2020-03-18 15:29:10 +0100
committerSolderpunk <solderpunk@sdf.org>2020-03-18 15:29:10 +0100
commit08ba6b0ff2d336a54437c48a32c859f9cb29da35 (patch)
treed44b0289893a0426a5430ff4500debd04ea7ec5b
parent56cff3febb8423d36d55d0f71469c74fc4b7b7a3 (diff)
Fix index file detection when using --directory.
-rw-r--r--gemfeed.py2
1 files changed, 1 insertions, 1 deletions
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)]