Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

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))
Source by www.tutorialspoint.com #
 
PREVIOUS NEXT
Tagged: #python
ADD COMMENT
Topic
Name
2+1 =