Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- # TreeList.py -- list all in directory and subdirectories
- import os
- path='C:\Program Files\Windows Media Player'
- for root, dirs, files in os.walk( path ):
- for name in dirs:
- print(os.path.join(root, name))
- print
- print
- for root, dirs, files in os.walk( path ):
- for name in files:
- print(os.path.join(root, name))
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement