Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

count number of subdirectories

import os
sum(os.path.isdir(os.path.join(path,i)) for i in os.listdir(path))
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #count #number #subdirectories
ADD COMMENT
Topic
Name
8+6 =