mirror of
https://github.com/tiennm99/serena.git
synced 2026-10-13 02:14:49 +00:00
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:
1 parent
ca8ac45c5e
commit
a603054cb9
1 file changed
+3
-1
@@ -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:
|
||||
|
||||
Reference in new issue
Block a user