Skip to content

Ghidra is a software reverse engineering (SRE) framework

GP-5637: Fixing PyGhidra usage of DomainFileIterator

Ryan Kurtzcb68d29bacd8
diff --git a/Ghidra/Features/PyGhidra/src/main/py/src/pyghidra/api.py b/Ghidra/Features/PyGhidra/src/main/py/src/pyghidra/api.py
index 7bcd4e3798..2baf062526 100644
--- a/Ghidra/Features/PyGhidra/src/main/py/src/pyghidra/api.py
+++ b/Ghidra/Features/PyGhidra/src/main/py/src/pyghidra/api.py
@@ -282,7 +282,7 @@ def walk_project(
start_folder = project.projectData.getFolder(start)
if start_folder is None:
raise FileNotFoundError(f'Starting folder "{start}" does not exist in the Project')
- for file in ProjectDataUtils.DomainFileIterator(start_folder):
+ for file in ProjectDataUtils.descendantFiles(start_folder):
if file_filter(file):
callback(file)