Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import os
- d="C:\\"
- print [f for f in os.listdir(d)
- if os.path.isdir(os.path.join(d,f))]
- print "Ok"
- print [f for f in os.listdir(d)
- if os.path.isfile(os.path.join(d,f))]
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement