-
Notifications
You must be signed in to change notification settings - Fork 18
Closed
Description
Implement new identifier keys for file names
Summary:
Adopt a hybrid approach (Slugify + Short Hash) to generate safe, human-readable, and unique filenames across different filesystems.
Context
There are blockers when mapping identifiers directly to the file system:
- Identifiers are case-sensitive.
- Most operating systems are not case-sensitive, which can cause conflicts.
To address this, the most acceptable option is a hybrid approach using slugify and hash startegy.
Hybrid: Slugify + Short Hash
What it does:
- Slugify for readability.
- Append a short hash of the original identifier for uniqueness.
Example mapping:
My:Component→my_component_a12f4c.tomlMy/Component→my_component_b91d0e.toml
Pros:
- Human-readable (
my_componentpart). - Collision-resistant (hash ensures uniqueness).
- Works across case-insensitive and case-sensitive filesystems.
Cons:
- Slightly longer filenames.
Metadata
Metadata
Assignees
Labels
No labels