fn write_atomic(path: &Path, content: &str) -> Result<(), Error>Expand description
Write content to path atomically: write a sibling temp file, fsync it,
then rename it over the destination. A concurrent reader sees either the old
file or the new one, never a truncated one.