def make_sure_path_exists(path):
    """
    Ensures that a directory exists.

    :param path: A directory path.
    """

    logging.debug('Making sure path exists: {0}'.format(path))
    try:
        os.makedirs(path)
    except __HOLE__ as exception:
        if exception.errno != errno.EEXIST:
            return False
    return True
dataset/ETHPy150Open audreyr/cookiecutter/cookiecutter/utils.py/make_sure_path_exists