Skip to main content

write_file_if_changed

Function write_file_if_changed 

Source
pub fn write_file_if_changed(path: &str, content: &str) -> Result<bool>
Expand description

Returns true if the file was written, false if it was already byte-identical.