Skip to content

Instantly share code, notes, and snippets.

@vwrs
Created June 8, 2019 15:15
Show Gist options
  • Save vwrs/21c661f27381b6a8aecdfbeb3e6ecb46 to your computer and use it in GitHub Desktop.
Save vwrs/21c661f27381b6a8aecdfbeb3e6ecb46 to your computer and use it in GitHub Desktop.
import os
PATH_DIR = '/path/to/dir'
if not os.path.exists(PATH_DIR):
print('mkdir', PATH_DIR)
os.mkdir(PATH_DIR)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment