summaryrefslogtreecommitdiffstats
path: root/BaseTools
diff options
context:
space:
mode:
Diffstat (limited to 'BaseTools')
-rw-r--r--BaseTools/Plugin/DebugMacroCheck/DebugMacroCheck.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/BaseTools/Plugin/DebugMacroCheck/DebugMacroCheck.py b/BaseTools/Plugin/DebugMacroCheck/DebugMacroCheck.py
index ffabcdf91b..f93e3acadc 100644
--- a/BaseTools/Plugin/DebugMacroCheck/DebugMacroCheck.py
+++ b/BaseTools/Plugin/DebugMacroCheck/DebugMacroCheck.py
@@ -429,7 +429,7 @@ def check_macros_in_directory(directory: PurePath,
files = []
for file in root_directory.rglob('*'):
- if file.suffix in extensions:
+ if file.suffix in extensions and not file.is_dir:
files.append(Path(file))
# Give an indicator progress is being made