Skip to content

extract_all: sanitize ':' out of block-name filenames for Windows#142

Merged
felipebalbi merged 1 commit into
mainfrom
windows/extract-filenames
Apr 30, 2026
Merged

extract_all: sanitize ':' out of block-name filenames for Windows#142
felipebalbi merged 1 commit into
mainfrom
windows/extract-filenames

Conversation

@felipebalbi

Copy link
Copy Markdown
Contributor

NTFS treats ':' as the alternate-data-stream separator, so File::create rejects names like 'flexspi0::Flexspi0.yaml' with ERROR_INVALID_NAME (123). Replace '::' with '__' when forming on-disk filenames in extract_per_block (and the analogous shortest-name path in extract_per_namespace). The downstream nxp-pac post-processing strips the namespace from the filename anyway, so the new separator is transparent there.

NTFS treats ':' as the alternate-data-stream separator, so
File::create rejects names like 'flexspi0::Flexspi0.yaml' with
ERROR_INVALID_NAME (123). Replace '::' with '__' when forming on-disk
filenames in extract_per_block (and the analogous shortest-name path
in extract_per_namespace). The downstream nxp-pac post-processing
strips the namespace from the filename anyway, so the new separator is
transparent there.
@felipebalbi felipebalbi requested review from Dirbaio and Wassasin April 30, 2026 17:47
@felipebalbi felipebalbi merged commit e5ab29f into main Apr 30, 2026
1 check passed
@felipebalbi felipebalbi deleted the windows/extract-filenames branch April 30, 2026 17:59
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.

2 participants