DekGenius.com
Home
(current)
Dictionary
BOOKS
LYRICS
CHORD
SCRIPT & CODE EXAMPLE
Karaoke language
Search
Go
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
COMMENT
Name
8+6 =
Submit