Get Immediate Subdirectories Using Python
Python
Returns a list containing the folder names of all immediate subdirectories below the current working directory.
1| import os 2| os.chdir(r'D:/Main/') 3| sub_dir = next(os.walk('.'))[1]
149
132
127
119