diff options
| author | liang-kai-shui <1677378668@qq.com> | 2026-11-22 18:49:30 +0800 |
|---|---|---|
| committer | liang-kai-shui <1677378668@qq.com> | 2026-11-22 18:49:30 +0800 |
| commit | 655a2e06d891c65d2c24efa99058d0b14e11dbe6 (patch) | |
| tree | 552ea71c2ff7c63338fe83c166eff2abd33f78b1 /runtime/src | |
| parent | f85582e23d4ab9e19acbf694358f137d6b8531b1 (diff) | |
gamedata_xml: report paths create their folder and cannot clobber inputs
--csv and --json are opened after the scan, so a missing folder lost the
result to a FileNotFoundError, a path that resolved to a carve index (or
to an XML target) replaced the input, and an existing directory ended in
a PermissionError traceback. Port navmesh_decode.py's pattern: create the
report parent, reject a directory report path, and reject report paths
that same_report_path() matches against every target (or
<dir>/index.json); also refuse identical --csv/--json paths.
New tests/test_gamedata_xml_report_paths.py covers all of it; main's
tool fails seven of the eight cases as the negative control.
Diffstat (limited to 'runtime/src')
0 files changed, 0 insertions, 0 deletions