Advertisement
here2share

# dir_exists.py

May 9th, 2015
353
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.15 KB | None | 0 0
  1. # dir_exists.py
  2.  
  3. import os
  4. new_folder = u"/Users/yourusername/Desktop/test"
  5. os.mkdir(new_folder)
  6. print os.path.exists(file)
  7. print os.path.exists(path)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement