pub fn write_if_changed(path: &Path, content: &str) -> Result<bool>Expand description
Write content to path. If the file already exists with byte-identical
content, do nothing. Returns true if a write actually occurred.
Creates any missing parent directories.