Created
April 14, 2020 14:24
-
-
Save Denniskamau/5f16609423acfc4d0c9960551222ec38 to your computer and use it in GitHub Desktop.
create directory
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
... | |
def createDirectory(self,path): | |
# Create directory to store the images | |
try: | |
os.mkdir(path) | |
except Exception as e: | |
print ("Creation of the directory failed",e ) | |
else: | |
print ("Successfully created the directory %s " % path) | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment