expeditionos/helpers/
files.rs

1use std::{env, path::PathBuf};
2
3pub fn get_config_directory() -> PathBuf {
4    if cfg!(target_os = "windows") {
5        PathBuf::from(env::var("APPDATA").unwrap_or_else(|_| "C:\\ProgramData".to_string()))
6            .join("expeditionos")
7    } else {
8        PathBuf::from(env::var("HOME").unwrap_or_else(|_| "/home/user".to_string()))
9            .join(".expeditionos")
10    }
11}