get_memory_bank_dir

Function get_memory_bank_dir 

Source
pub fn get_memory_bank_dir(workspace_dir: &Path) -> PathBuf
Expand description

Get the memory bank directory path for a workspace

Returns the path to .gestura/memory/ within the workspace directory. This directory is created automatically when saving entries.

§Arguments

  • workspace_dir - Root directory of the workspace

§Examples

use gestura_core::memory_bank::get_memory_bank_dir;
use std::path::Path;

let workspace = Path::new("/home/user/project");
let memory_dir = get_memory_bank_dir(workspace);
assert_eq!(memory_dir, Path::new("/home/user/project/.gestura/memory"));