...))

        log_write(log, f"[{now_iso()}] [DONE] ok={ok_count} failed={fail_count} skipped={skipped} total={len(files)}\n")

    print(f"PH3 DONE: ok={ok_count} failed={fail_count} skipped={skipped} total={len(files)}")
    print(f"OUT:   {scores_path}")
    print(f"INDEX: {index_path}")
    print(f"LOG:   {runlog_path}")
    print(f"FAILS: {fails_dir}")
    return 0


if __name__ == "__main__":
    #...