Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

python how to count ever yfile in fodler

import fnmatch

print len(fnmatch.filter(os.listdir(dirpath), '*.txt'))
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #python #count #yfile #fodler
ADD COMMENT
Topic
Name
1+7 =