Skip to content

Instantly share code, notes, and snippets.

@felipecustodio
Last active April 21, 2021 21:10
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save felipecustodio/29322ebd45b3fd4b966e002c89bc4cca to your computer and use it in GitHub Desktop.
Save felipecustodio/29322ebd45b3fd4b966e002c89bc4cca to your computer and use it in GitHub Desktop.
create directory if doesn't exist
from pathlib import Path
directory = "hello"
Path(f"{directory}").mkdir(parents=True, exist_ok=True)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment