def createpath(path, mode, exists_ok=True):
    """
    Create directories in the indicated path.
    :param path:
    :param mode:
    :param exists_ok:
    :return:
    """
    try:
        os.makedirs(path, mode)
    except OSError, e:
        if e.errno != errno.EEXIST or not exists_ok:
            raise e
def createpath ( path , mode , exists_ok = True ) : try : os . makedirs ( path , mode ) except OSError , e : if e . errno != errno . EEXIST or not exists_ok : raise e
Create directories in the indicated path.
    :param path:
    :param mode:
    :param exists_ok:
    :return: