fn put(dir: &Path, name: &str, body: &str) -> Result<()>
Write name in dir atomically: a temporary file, synced, renamed over it.
name
dir