Expand description
Platform data-directory resolution for zenith-session.
The resolved directory is the root under which all .zen store data lives.
§Platform mapping (via the dirs crate)
| Platform | Path |
|---|---|
| Linux | $XDG_DATA_HOME/zenith (falls back to ~/.local/share/zenith) |
| macOS | ~/Library/Application Support/zenith |
| Windows | %LOCALAPPDATA%\zenith |
§Override
Set ZENITH_DATA_DIR to a non-empty path to bypass platform detection
entirely. Useful for testing and for portable installations.
Functions§
- resolve_
data_ dir - Resolve the zenith data directory using real environment variables.
- resolve_
data_ dir_ with - Resolve the zenith data directory using an injectable environment lookup.