pub fn partial_cmp_paths(
a: &Path,
b: &Path,
diff_op: &DiffOp,
missing: MissingFileBehavior,
) -> Result<Option<Ordering>, Error>
Expand description
Returns the ordering of two files based on their modification times. The order is a partial order, and as such, None will be returned if the file modification times cannot be determined.
§Parameters
diff
: Whether to consider files with equivalent content to be equal.missing
: TheMissingFileBehavior
indicating how to handle missing files.
§Errors
Returns an error if MissingFileBehavior::Error
is used and a provided
file is missing, or if reading the file results in an unexpected IO error.