Advertisement
Guest User

os.walk example

a guest
Sep 19th, 2011
152
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.13 KB | None | 0 0
  1. for path, dirs, files in os.walk("."):
  2.     for dir in dirs:
  3.         print path, "\t", dir
  4.     for file in files:
  5.         print path, "\t", file
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement