I just want to count files of particular type (like *.txt) in a folder.
I searched net and found this for all files count :
file_count = len(os.walk(valid_path).next())
But I need perticuler type like *.txt . (means how many .txt files in folder)
How to do this ?
Thanks in advance.