mirror of
https://github.com/ubiquitarianism/leonida.git
synced 2026-11-26 23:55:52 +01:00
[PR #1403] reports: detect case-folded aliases before creating output folders #1433
Labels
No labels
bug
pull-request
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
starred/leonida#1433
Loading…
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/ubiquitarianism/leonida/pull/1403
Author: @PyZikYG
Created: 11/25/2026
Status: 🔄 Open
Base:
main← Head:report-path-missing-parent📝 Commits (1)
25323b2reports: detect case-folded aliases before creating output folders📊 Changes
2 files changed (+39 additions, -6 deletions)
View changed files
📝
tests/test_report_paths.py(+12 -2)📝
tools/report_paths.py(+27 -4)📄 Description
Claimed as REPORT-PATH-MISSING-PARENT.
On a case-folding volume that needs a filesystem probe, the shared report guard could miss two outputs such as New/reports/R.json and new/Reports/r.JSON when neither parent existed. Exporters can create both parents later and write both reports to the same file.
Probe relative path spellings from their nearest existing parent in a temporary directory. This catches aliases before creating the output tree and leaves the requested directories untouched. The change is separate from the Windows case-sensitive-directory handling in #490.
Tested
python -I tests/test_report_paths.pypython -I tests/test_character_census.pypython -I tests/test_navmesh_index.pypython -I tests/test_text_write_line_endings.pyAI-assisted: yes.
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.