def METHOD_NAME(digest: Digest, subdir: str) -> None:
    while subdir in disambiguated_dirs:
        # It's unlikely that two distinct partition descriptions will become the
        # same after path_safe(), but might as well be safe.
        subdir += "_"
    disambiguated_dirs.add(subdir)
    output_dir = str(dist_dir.relpath / goal_name / subdir)
    workspace.write_digest(digest, path_prefix=output_dir)
    logger.info(f"Wrote {goal_name} report files to {output_dir}.")