Search
 
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
Name
7+4 =