Created
April 30, 2020 11:47
-
-
Save h4ndzdatm0ld/b76cc4e960075df77ee2d5533b4df7b5 to your computer and use it in GitHub Desktop.
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 createFolder(directory): | |
try: | |
if not os.path.exists(directory): | |
os.makedirs(directory) | |
except OSError: | |
print('Error: Creating directory. ' + directory) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment