diff --git a/BaseTools/Plugin/DebugMacroCheck/DebugMacroCheck.py b/BaseTools/Plugin/DebugMacroCheck/DebugMacroCheck.py index ffabcdf91b60..1aedafb22c45 100644 --- a/BaseTools/Plugin/DebugMacroCheck/DebugMacroCheck.py +++ b/BaseTools/Plugin/DebugMacroCheck/DebugMacroCheck.py @@ -429,7 +429,7 @@ def _show_file_discovered_message(file_count: int, files = [] for file in root_directory.rglob('*'): - if file.suffix in extensions: + if not file.is_dir and file.suffix in extensions: files.append(Path(file)) # Give an indicator progress is being made