Answers for "count number of subdirectories"

0

count number of subdirectories

import os
sum(os.path.isdir(os.path.join(path,i)) for i in os.listdir(path))
Posted by: Guest on August-30-2021

Code answers related to "count number of subdirectories"

Python Answers by Framework

Browse Popular Code Answers by Language