dir.rs
//! App directories shared between all Inflorescence apps.
use directories::ProjectDirs;
use std::path::PathBuf;
const QUALIFIER: &str = "com";
const ORGANIZATION: &str = "holonyte";
const APPLICATION: &str = "inflorescence";
/// App config dir
pub fn config() -> PathBuf {
projects_dir().config_dir().to_path_buf()
}
/// App config dir
pub fn data() -> PathBuf {
projects_dir().config_dir().to_path_buf()
}
fn projects_dir() -> ProjectDirs {
ProjectDirs::from(QUALIFIER, ORGANIZATION, APPLICATION).unwrap()
}