Skip to main content

paths_refer_to_same

Function paths_refer_to_same 

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

True when two paths refer to the same filesystem location.

Uses exact equality, then both-sides canonicalize. Dual canonicalize failures do not count as a match (None == None would wrongly agree).