pub fn are_hardlinks_or_one_way_symlink_to_same_file(
    source: &Path,
    target: &Path
) -> bool
Expand 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 a Path representing the source path.
  • target - A reference to a Path representing the target path.

Returns

  • bool - Returns true if either of above conditions are true, and false otherwise.