i'm using this code to get all files in a given folder. Is there a way to get only the folders ?
a = os.listdir('Tools')
import os.path dirs = [d for d in os.listdir('Tools') if os.path.isdir(os.path.join('Tools', d))]
1.4m articles
1.4m replys
5 comments
57.0k users