Skip to main content

same_file

Function same_file 

Source
pub fn same_file(a: impl AsRef<Path>, b: impl AsRef<Path>) -> bool
Expand description

Whether a and b name the same existing file (by canonical path). A copy onto itself truncates the file: the destination directory on the resource search path made a stale resource its own only match (#312); a plain != on two spellings (./, relative) misses it.