data_file

Function data_file 

Source
pub fn data_file(name: &str, config: &PathConfig) -> PathBuf
Expand description

Get path to a data file (cache, logs, etc.)

Priority:

  1. CLI –config-dir argument
  2. PLAYA_CONFIG_DIR environment variable
  3. Local folder IF any config files exist (playa.json, playa.log)
  4. 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}