diff options
author | Solderpunk <solderpunk@sdf.org> | 2020-03-18 15:29:10 +0100 |
---|---|---|
committer | Solderpunk <solderpunk@sdf.org> | 2020-03-18 15:29:10 +0100 |
commit | 08ba6b0ff2d336a54437c48a32c859f9cb29da35 (patch) | |
tree | d44b0289893a0426a5430ff4500debd04ea7ec5b | |
parent | 56cff3febb8423d36d55d0f71469c74fc4b7b7a3 (diff) |
Fix index file detection when using --directory.
-rw-r--r-- | gemfeed.py | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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)] |