Skip to content

Instantly share code, notes, and snippets.

@Denniskamau
Created April 14, 2020 14:24
Show Gist options
  • Save Denniskamau/5f16609423acfc4d0c9960551222ec38 to your computer and use it in GitHub Desktop.
Save Denniskamau/5f16609423acfc4d0c9960551222ec38 to your computer and use it in GitHub Desktop.
create directory
...
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