pub fn write_tmp(path: &Path, contents: &str) -> Result<PathBuf>
Write contents to .{file}.tmp beside path, fsync. Does not rename.
contents
.{file}.tmp
path