INNER CODE UNIT · Python
get_all_file_paths
qodex-ai/apimesh · file_scanner.py:13
def get_all_file_paths(self) -> List[str|bytes]:
"""
Get all file paths in the repository, ignoring specified directories
"""
repo_path = get_repo_path()
file_paths = []
supported_extensions = ('.py', '.js', '.ts', '.java', '.rb', '.go')
for root, dirs, files in os.walk(repo_path):
dirs[:] = [d for d in dirs if d not in config.ignored_dirs]
if not self.should_process_directory(root):
continue
for file in files:
if file.endswith(supported_extensions):
file_path = os.path.join(root, file)
file_paths.append(file_path)