The ERROR line reused the CLI target, so a locked sub-folder was reported as
the root the user passed. Use exc.filename when present, like bink_index,
save_keys and vertex_types already do, so the message points at the folder
to fix.
AI-assisted.
The regression test self-skips on Windows and as root, and CI runs this file
only on windows-latest, so the guard was never exercised in CI. Load the tool
in-process and force os.scandir to raise for one folder instead, which
reproduces the same PermissionError on every platform.
AI-assisted.
The local exporter writes vertex_count and triangle_count, not index_count. Remove the invented index_count from the synthetic fixtures and expect the documented unknown index total; keep index_count optional for inputs that actually supply it.