Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

python how to count ever yfile in fodler

import os

onlyfiles = next(os.walk(dir))[2] #dir is your directory path as string
print len(onlyfiles)
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #python #count #yfile #fodler
ADD COMMENT
Topic
Name
8+1 =