pub fn data_file(name: &str, config: &PathConfig) -> PathBufExpand description
Get path to a data file (cache, logs, etc.)
Priority:
- CLI –config-dir argument
- PLAYA_CONFIG_DIR environment variable
- Local folder IF any config files exist (playa.json, playa.log)
- Platform-specific data directory from dirs-next (default)
Platform paths:
- Linux: ~/.local/share/playa/{name}
- macOS: ~/Library/Application Support/playa/{name}
- Windows: %APPDATA%\playa{name}