-3

I want to get the name of sub-directories in Python,

eg : Folder A hav sub folders a,b,c,d ect...

I want to get name of all the folders inside the folders a,b,c, ...

MLSC
  • 5,584
  • 7
  • 49
  • 85
ArUn
  • 1,191
  • 2
  • 20
  • 38

1 Answers1

-2

os.listdir() should do the trick.

Filip Malczak
  • 2,984
  • 23
  • 42