Skip to main content

same_file_at

Function same_file_at 

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

Whether a and b name one file (same device and inode, or volume serial and file index on Windows). Hard links and symlinks count as the same file. false when either path is missing.

§Errors

When either path’s identity cannot be read for a reason other than it being missing.