I have script.py file which iterates over specific files in the directory where the script.py file is located.
Script looks something like this:
def my_funct(l):
Does stuff:
iterates over list of files
Does stuff:
globlist = glob.glob('./*.ext')
my_funct(glob list)
I would like to be able to not only iterate over the *.ext files in this directory, but iterate over all the .ext file in all the directories in this directory.
I information I'm reading about os.walk is not making sense.
Thanks.