def mkdir(name):

    if os.path.isdir(name):
        return
    elif os.path.exists(name):
        raise UserError("Error creating directory %s - File exists!" % name)

    return os.makedirs(name)
Creates directory (works recursively)
dataset/ETHPy150Open zynga/jasy/jasy/core/File.py/mkdir