DekGenius.com
Home
(current)
Dictionary
BOOKS
LYRICS
CHORD
SCRIPT & CODE EXAMPLE
Karaoke language
Search
Go
SCRIPT & CODE EXAMPLE
CODE EXAMPLE FOR PYTHON
python make directory if not exists
try: os.makedirs("path/to/directory") except FileExistsError: # directory already exists pass
Source by stackoverflow.com #
PREVIOUS
NEXT
Tagged:
#python
#directory
#exists
ADD COMMENT
Topic
COMMENT
Name
3+8 =
Submit