Is there a way to return a list of all the subdirectories in the current directory in Python?
I know you can do this with files, but I need to get the list of direct
You can get the list of subdirectories (and files) in Python 2.7 using os.listdir(path)
import os os.listdir(path) # list of subdirectories and files