in src/advisor/scanners/scanner.py [0:0]
def scan_tree(self, root, report, progress_callback=None):
"""Scans the filesysem tree starting at root for potential porting issues.
Args:
root (str): The root of the filesystem tree to scan.
report (Report): Report to add issues to.
progress_callback (function): Optional callback called with file names.
"""
for dirName, _, fileList in os.walk(root):
for fname in fileList:
path = os.path.join(dirName, fname)
if not Scanner._is_vcs_directory(path) and self.accepts_file(path):
if progress_callback:
progress_callback(path)
self.scan_file(path, report)