Run ❯
Get your
own Python
server
×
Change Orientation
Change Theme, Dark/Light
Go to Spaces
#Import os Library import os #Travers all the branch of a specified path for (root,dirs,files) in os.walk('C:/W3school/',topdown=True): print("Directory path: %s"%root) print("Directory Names: %s"%dirs) print("Files Names: %s"%files)