def s3_path_to_name(path: str, joiner: str = ":") -> str:
    """
    Remove the bucket name from the path and return the name of the file.
    """
    without_bucket = path.rstrip("/").split("/")[1:]
    return joiner.join(without_bucket)