Created
September 27, 2018 02:37
-
-
Save BedirYilmaz/86908b20bd1e0e0c25b217c6a44dd38b to your computer and use it in GitHub Desktop.
create dirs the safe way in python
This file contains 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
def create_dir(path): | |
if not os.path.isdir(path): | |
os.makedirs(path) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment