Skip to content
Snippets Groups Projects
Commit fc0625a2 authored by Roang's avatar Roang
Browse files

Fix glob to recursive

Search for *.md files recursively in the base_path directory.
parent 4bd5498b
No related branches found
No related tags found
No related merge requests found
...@@ -331,7 +331,7 @@ class GitRepo: ...@@ -331,7 +331,7 @@ class GitRepo:
:return: a dictionary mapping filenames to that file's text content :return: a dictionary mapping filenames to that file's text content
""" """
documents = {} documents = {}
for file in self.base_path.glob(glob): for file in self.base_path.rglob(glob):
# we are only interested in actual files # we are only interested in actual files
if not file.is_file(): if not file.is_file():
continue continue
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment