use crate::error::Error;
use std::path::PathBuf;
pub fn config_dir() -> Result<PathBuf, Error> {
Ok(dirs::home_dir()
.ok_or(Error::Fs("Unable to locate home directory".to_string()))?
.join(".szdt"))
}
pub fn contacts_file() -> Result<PathBuf, Error> {
Ok(config_dir()?.join("contacts.sqlite"))
}