Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

os walk example

import os
folder_path = r'C:Test'
for root,dirs,files in os.walk(folder_path, topdown=True):
  print(root)
  print(dirs)
  print(files)
Source by www.tutorialspoint.com #
 
PREVIOUS NEXT
Tagged: #os #walk
ADD COMMENT
Topic
Name
4+3 =