def _mkdir_p(path):
    """mkdir -p path"""
    try:
        os.makedirs(path)
    except __HOLE__ as exc:
        if exc.errno == errno.EEXIST and os.path.isdir(path):
            pass
        else:
            raise
    else:
        logger.info("New: %s%s", path, os.path.sep)
dataset/ETHPy150Open hustlzp/Flask-Boost/flask_boost/cli.py/_mkdir_p