pub fn write_to_dir(
dir: &Path,
name: &str,
description: &str,
scope: MemoryScope,
tags: &[String],
body: &str,
) -> Result<PathBuf>Expand description
Write a memory into dir (created if needed). Returns the file path.
Testable core of write_memory.