-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,872
  • 8
  • 55
  • 89
ArUn
  • 1,317
  • 2
  • 23
  • 39

1 Answers1

-2

os.listdir() should do the trick.

Filip Malczak
  • 3,124
  • 24
  • 44