pub fn paths_refer_to_same_file<P: AsRef<Path>>(
    p1: P,
    p2: P,
    dereference: bool
) -> bool
Expand description

Checks if p1 and p2 are the same file. If error happens when trying to get files’ metadata, returns false