Example: I have the main folder named "alphabets" under this i have 'n' number of subfolders. I want to extract the 'n' subfolder names into excel/or any file using python.
alphabets #main folder abc #subfolder1 def #subfolder2 . . . xyz #subfoldern
I want the output as : abc def . . . xyz