pub fn same_file(first: &Path, second: &Path) -> boolExpand description
What: Report whether two paths name the same existing file. Why: Self-exclusion must hold through symbolic links, hard links, relative spellings and repeated PATH directories. Either check alone suffices; an inspection failure means “not proven the same”.
In TS you’d write (pseudocode):
async function sameFile(first: string, second: string): Promise<boolean>;