nibb_core/
fs.rs

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