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:
based on other answers this is my current working implementation, which retrieves nested xml files in a root directory:
files = [] for root, dirnames, filenames in os.walk(myDir): files.extend(glob.glob(root + "/*.xml"))
I'm really having fun with python :)