1use std::path::PathBuf;
2use dirs::home_dir;
3use crate::result::{NibbError, NibbResult};
45/// Get the path to the main Nibb directory
6pub fn get_nibb_dir() -> NibbResult<PathBuf> {
7Ok(home_dir().ok_or(NibbError::NotFound("home directory".to_string()))?.join(".nibb"))
8}