Last active
January 8, 2019 11:01
-
-
Save pareksha/1ed191c6d71336aa591529f33a54ab7c to your computer and use it in GitHub Desktop.
This python snippet creates the directory if it doesn't exist.
This file contains 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 | |
directory = 'media/csvs/' | |
if not os.path.exists(directory): | |
os.makedirs(directory) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment