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.
§Errors
Creating dir and writing the file. A name that slugifies to an existing
file is not an error — the memory is overwritten, which is how an update
works.