Search snippets
Browse Code Answers
FAQ
Usage docs
Log In
Sign Up
Home
Python
python count files directory
eMAD
Programming language:
Python
2021-07-29 12:00:40
0
Q:
python count files directory
Tamara
Code:
Python
2021-08-06 12:46:20
import os len(os.listdir(directory))
3
Tags
python
file
files
count
Related
Python Program to Count the Occurrences of a Word in a Text File
python monitor directory for files count
count occu elements in list python
python count list
count elements in list python
python how to count elements in lists
python how to count all elements in a list
python get files in directory
get files in directory python
python how to count the lines in a file
python read a directory to get all files in sub folders
New to Communities?
Join the community