This is what I have:
glob(os.path.join(\'src\',\'*.c\'))
but I want to search the subfolders of src. Something like this would work:
Consider pathlib.rglob().
This is like calling Path.glob() with "**/" added in front of the given relative pattern:
Path.glob()
"**/"
import pathlib for p in pathlib.Path("src").rglob("*.c"): print(p)
See also @taleinat's related post here and a similar post elsewhere.