pub fn write_memory(
memory_dir: &Path,
filename: &str,
meta: &MemoryMeta,
content: &str,
) -> Result<PathBuf, String>Expand description
Write a memory file and update the index atomically.
Returns the path of the written memory file.