Advertisement
metalx1000

Walking through Directories - Python

Nov 13th, 2012
436
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.11 KB | None | 0 0
  1. #!/usr/bin/env python
  2.  
  3. import os
  4. for root, dirs, files in os.walk('/home/user'):
  5.     print root, dirs, files
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement