Skip to content

Export names: id tail, refused file names, case-folded pairs, no links in records (3.24.3) - #50

Merged
tmoosting merged 4 commits into
mainfrom
fix/export-names-2490
Nov 30, 2026
Merged

tmoosting merged 4 commits into
mainfrom
fix/export-names-2490

Conversation

@tmoosting

Copy link
Copy Markdown
Member

Export as OnlyWorlds folder: what an element's file may be named from its id, and what a records link may carry out.

  • The id tail counts code points (not UTF-16 units) and follows the folder format's dash rule.
  • A file name a disk would refuse (a Windows device name, one of <>:"|?*, a control character, half a character, over 255 bytes) is left out and named in the report. Before, one such id stopped the export part-way and left a partial folder.
  • Two elements of one type whose file names are one name once folded (NFC, then simple case folding) are both left out, each reason naming the other id. Before, one file was left on a disk that ignores case and the other element was lost silently. The short-name collision rule compares by the same fold, and orders ids by code point.
  • A link inside a world's records/ (a file, a folder, records/ itself) is not followed on desktop: it is left out and named. A records/RECORDS.json that is a link stops the read, so no private producer travels by guess. Before, an export copied the bytes of any file a link pointed to.
  • Version 3.24.3.

Tests: 1199 pass; each new test goes red with its change undone. Tried in a real vault on Windows: the new export walk (5 of 5, 0 of 5 on 3.24.2), the export paths walk, the four-notes walk (29), the local chapter walk (15) and the made-import walk (60). Not tried on iOS, Android, macOS or Linux; the link check is desktop only.

🤖 Generated with Claude Code

tmoosting and others added 4 commits November 30, 2026 15:34
… pairs, no links in records

The id tail counts code points with the dash rule of the folder spec. A file name a disk would refuse (a device name, one of <>:"|?*, a control character, over 255 bytes), and two names of one type that are one name once folded (NFC, then simple case folding), are left out and named instead of stopping the export part-way or leaving one file. A link inside records/ is left out, never followed.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
…e point order, reasons

A records/RECORDS.json that is a link stops the read instead of reading as no manifest. A records/ folder that is itself a link is not read. A file name with half a character is refused. The short name goes to the lower id in code point order. A collision reason no longer blames case alone, and an export with nothing left says why.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
… records/ itself

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
@tmoosting
tmoosting merged commit d3e1f17 into main Nov 30, 2026
1 check passed
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