Answers for "python os.walk with path"

3

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)
Posted by: Guest on June-25-2020

Python Answers by Framework

Browse Popular Code Answers by Language