human
Getting a list of all subdirectories in the current directory
assistant
Here is some code to get a list of all subdirectories in the directory `directory`

[x[0] for x in os.walk(directory)]

#Warning: this code generation is experimental. Please inspect the code for any bugs before executing.