Apologies if this has been asked, but I couldn't find it anywhere. How can I search my current directory and all its subdirectories to output a list of csv files?
glob.glob('*.csv') glob.glob('**/*.csv')
So the first outputs a list of all .csv files in the working directory and the second outputs a list of files in all of the subdirectories within the working directory. Is there a way to modify this so I can search the entire directory?
2.1m questions
2.1m answers
60 comments
57.0k users