summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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)]