Answers for "os walk python 3"

1

os.walk python

# !/usr/bin/python

import os
for root, dirs, files in os.walk(".", topdown=False):
   for name in files:
      print(os.path.join(root, name))
   for name in dirs:
      print(os.path.join(root, name))
Posted by: Guest on May-10-2021

Python Answers by Framework

Browse Popular Code Answers by Language