Skip to content

Report missing input paths in scan commands - #117

Open
Yoshi-233 wants to merge 1 commit into
Zettrox:mainfrom
Yoshi-233:fix/report-missing-scan-roots
Open

Yoshi-233 wants to merge 1 commit into
Zettrox:mainfrom
Yoshi-233:fix/report-missing-scan-roots

Conversation

@Yoshi-233

Copy link
Copy Markdown

A missing path passed to census, shader-info, or translate currently produces an empty report and a successful exit. The same happens when the missing path comes from victory.toml. Each command discards directory-walk errors before it examines the entries.

Use a shared file iterator that propagates errors at the scan root. The returned error identifies the path. File roots and empty directories remain valid, and traversal below an accessible root keeps its existing best-effort behavior.

Verification

Ran 15 native Windows CLI cases on main and repeated them on this branch. Each of the three commands was given an empty directory, a regular text file, a missing path, a valid directory followed by a missing path, and a missing path from the configuration file. Main returned 0 in all 15 cases. This branch returned 0 for the six valid cases and 1 with the path on stderr for all nine missing-root cases.

Both Windows CLI unit tests passed, as did the repository asset-policy check. The native Linux CLI build stops in existing Windows-specific loader and GPU code before compiling the CLI.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant