Last active
September 20, 2018 21:18
-
-
Save blaylockbk/b4219bde8d764219558c9b0b00b3ac68 to your computer and use it in GitHub Desktop.
make a directory if it doesn't exist, like a save dir, with os.path
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import os | |
| DIR = '/this/is/the/directory/name/' | |
| if not os.path.exists(DIR): | |
| os.makedirs(DIR) |
Author
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
may also link the photo viewer from my directory whenever an image directory is created