import base64


def base64_encoded_content(path):
    """
    Returns the base64-encoded content of the file at the given path as a string.
    """
    with path.open("rb") as fh:
        return base64.b64encode(fh.read()).decode()