Created
February 6, 2021 18:39
-
-
Save tomaszfer/67c6776dccbc5dfb54b63aba4472ad24 to your computer and use it in GitHub Desktop.
[python] Create directory if not existing
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
| import os | |
| def create_dir(path): | |
| if not os.path.exists(path): | |
| os.makedirs(path) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment