(path)
Create a directory if it doesn't exist.
Create a directory if it doesn't exist.
Create a directory if it doesn t exist .
def check_dir(path):
    '''Create a directory if it doesn't exist.'''
    if not os.path.exists(path):
        os.mkdir(path)
def check_dir ( path ) : if not os . path . exists ( path ) : os . mkdir ( path )