Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

python how to count ever yfile in fodler

import os
isfile = os.path.isfile
join = os.path.join

directory = 'mydirpath'
number_of_files = sum(1 for item in os.listdir(directory) if isfile(join(directory, item)))
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #python #count #yfile #fodler
ADD COMMENT
Topic
Name
6+2 =