Skip to content

Instantly share code, notes, and snippets.

@sebatyler
Created March 1, 2018 15:19
Show Gist options
  • Save sebatyler/07b1dde5ad63e5a6118d5873d5516b06 to your computer and use it in GitHub Desktop.
Save sebatyler/07b1dde5ad63e5a6118d5873d5516b06 to your computer and use it in GitHub Desktop.
import os
file_path = '/tmp/zz/test.csv'
path_dir = os.path.dirname(file_path)
os.makedirs(path_dir, exist_ok=True)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment