Expand description
Unified dot-file handling for vault storage
Dot-files (.gitignore, .envrc, etc.) need to be “neutralized” when stored
in the vault to prevent them from having active effects (e.g., .gitignore
affecting git’s view of the vault directory).
This module provides consistent transformation:
.gitignore→dot.gitignore(neutralized)dot.gitignore→.gitignore(restored)
Functions§
- is_
dotfile - Check if a path component is a dot-file or dot-directory.
- neutralize_
name - Transform a dot-file name to neutralized form:
.foo→dot.foo - neutralize_
path - Transform an entire path, neutralizing each dot-component.
- restore_
name - Transform a neutralized name back to dot-file form:
dot.foo→.foo - restore_
path - Transform an entire path, restoring each neutralized component.