How do I list all subdirectories in a directory?
Answer
To get a list of all subdirectories in a directory, recursively, you can
use the os.walk function. It returns a three tuple with first entry being all the subdirectories. You can also list the directories(immediate only) using the os.
Answer
To get a list of all subdirectories in a directory, recursively, you can
use the os.walk function. It returns a three tuple with first entry being all the subdirectories. You can also list the directories(immediate only) using the os.