How can I find all files in directory with the extension .csv in python?
import os import glob path = 'c:\' extension = 'csv' os.chdir(path) result = glob.glob('*.{}'.format(extension)) print(result)
1.4m articles
1.4m replys
5 comments
57.0k users