def METHOD_NAME(self, endpoint_name: str) -> Path:
    """Create or update a local endpoint build directory.
    :param str endpoint_name: Name of local endpoint to get local directory.
    :return: path to endpoint build directory.
    :rtype: Path
    """
    build_directory = self._get_build_directory(endpoint_name=endpoint_name)
    build_directory.mkdir(parents=True, exist_ok=True)
    return build_directory