pub fn copy_if_different<P: AsRef<Utf8Path>>(data: &[u8], dest: P) -> Result<()>
Writes data to the destination path, replacing if destination file exists and SHA1 mismatches.
Does not create missing parent directories!