Skip to main content

same_content

Function same_content 

Source
pub fn same_content(a: &Path, b: &Path) -> bool
Expand description

Check whether two files have identical content. Returns false if either file doesn’t exist or can’t be read, or if their sizes differ (avoids reading content when lengths don’t match).