Function uucore::fs::are_hardlinks_or_one_way_symlink_to_same_file
source · pub fn are_hardlinks_or_one_way_symlink_to_same_file(
source: &Path,
target: &Path
) -> boolExpand description
Checks if either two paths are hard links to the same file or if the source path is a symbolic link which when fully resolved points to target path
Arguments
source- A reference to aPathrepresenting the source path.target- A reference to aPathrepresenting the target path.
Returns
bool- Returnstrueif either of above conditions are true, andfalseotherwise.