fn write_memory_file_atomically(
dir: &Path,
filename: &str,
content: &str,
who: &str,
) -> Result<(), String>Expand description
Writes content to dir/filename through a per-write temp file, so a
reader never sees a half-written file. who is the command’s name for errors.