aboutsummaryrefslogtreecommitdiffstats
path: root/src/dirs.rs
blob: 177ea5866952561f15542f9ff0677c42ad253477 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
pub fn config_dir() -> std::path::PathBuf {
    let project_dirs = directories::ProjectDirs::from("", "", "rbw").unwrap();
    project_dirs.config_dir().to_path_buf()
}

pub fn cache_dir() -> std::path::PathBuf {
    let project_dirs = directories::ProjectDirs::from("", "", "rbw").unwrap();
    project_dirs.cache_dir().to_path_buf()
}

pub fn runtime_dir() -> std::path::PathBuf {
    let project_dirs = directories::ProjectDirs::from("", "", "rbw").unwrap();
    project_dirs.runtime_dir().unwrap().to_path_buf()
}