From d5aa658ea9d6f9f70d4ddc263c1b6aa7489e8ff9 Mon Sep 17 00:00:00 2001 From: David Benepe Date: Sat, 29 Oct 2022 13:09:25 -0400 Subject: [PATCH] Added suggestion for find command --- tools/python/m2ctx.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/python/m2ctx.py b/tools/python/m2ctx.py index c6634267..b5caf838 100644 --- a/tools/python/m2ctx.py +++ b/tools/python/m2ctx.py @@ -452,7 +452,7 @@ def write_output(data): # Uses the `find` program to return the filenames in the specified folders. def find_files(): - find_command = ["find"] + search_folders + find_command = ["find"] + search_folders + ["-type", "f", "-name", "*.[ch]"] try: return subprocess.check_output(find_command, cwd=root_dir, encoding="utf-8") except subprocess.CalledProcessError: