Answers for "to count files in pwd"

6

python count files directory

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

count files in directory linux

ls | wc -l
Posted by: Guest on July-02-2020

Python Answers by Framework

Browse Popular Code Answers by Language