Answers for "python script to count number of files in directory"

6

python count files directory

import os
len(os.listdir(directory))
Posted by: Guest on April-03-2020
-1

count a number of file in a folder python

import os
len([item for item in os.listdir(folderPath)])
Posted by: Guest on April-17-2021

Code answers related to "python script to count number of files in directory"

Python Answers by Framework

Browse Popular Code Answers by Language