Fix prevention of recursion into ignored directories in gather_source_files

(Used _is_ignored_relative_path instead of is_ignored_path)
This commit is contained in:
Dominik Jain authored and Dominik Jain committed 2025-08-21 19:02:57 +02:00
1 parent ca8ac45c5e
commit a603054cb9
1 file changed
+3 -1
+3 -1
View File
@@ -178,7 +178,9 @@ class Project:
return [relative_path]
else:
for root, dirs, files in os.walk(start_path, followlinks=True):
dirs[:] = [d for d in dirs if not self._is_ignored_relative_path(os.path.join(root, d))]
# prevent recursion into ignored directories
dirs[:] = [d for d in dirs if not self.is_ignored_path(os.path.join(root, d))]
for file in files:
rel_file_path = os.path.relpath(os.path.join(root, file), start=self.project_root)
try: