Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

os.mkdir exceptions

import os
import errno
if not os.path.exists(value):
    try:
        os.makedirs(value, 0o700)
    except OSError as e:
        if e.errno != errno.EEXIST:
            raise
Source by deepix.github.io #
 
PREVIOUS NEXT
Tagged: #exceptions
ADD COMMENT
Topic
Name
8+4 =