Last active
April 21, 2021 21:10
-
-
Save felipecustodio/29322ebd45b3fd4b966e002c89bc4cca to your computer and use it in GitHub Desktop.
create directory if doesn't exist
This file contains hidden or 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
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