Answers for "count number of files in a different directory python"

6

python count files directory

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

How to count number of files in each directory

du -a | cut -d/ -f2 | sort | uniq -c | sort -nr
Posted by: Guest on June-11-2020

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

Python Answers by Framework

Browse Popular Code Answers by Language