Skip to content

Instantly share code, notes, and snippets.

@pareksha
Last active January 8, 2019 11:01
Show Gist options
  • Save pareksha/1ed191c6d71336aa591529f33a54ab7c to your computer and use it in GitHub Desktop.
Save pareksha/1ed191c6d71336aa591529f33a54ab7c to your computer and use it in GitHub Desktop.
This python snippet creates the directory if it doesn't exist.
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