Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- # dir_exists.py
- import os
- new_folder = u"/Users/yourusername/Desktop/test"
- os.mkdir(new_folder)
- print os.path.exists(file)
- print os.path.exists(path)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement