Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

python how to count ever yfile in fodler

import os
directory = 'mydirpath'

number_of_files = len([item for item in os.listdir(directory) if os.path.isfile(os.path.join(directory, item))])
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #python #count #yfile #fodler
ADD COMMENT
Topic
Name
4+3 =