tramp-equal-remote

tramp-equal-remote is a compiled Lisp function in `tramp.el'.

(tramp-equal-remote FILE1 FILE2)

Check, whether the remote parts of FILE1 and FILE2 are identical.
The check depends on method, user and host name of the files. If
one of the components is missing, the default values are used.
The local file name parts of FILE1 and FILE2 are not taken into
account.

Example:

(tramp-equal-remote "/ssh::/etc" "/<your host name>:/home")

would yield `t'. On the other hand, the following check results in nil:

(tramp-equal-remote "/sudo::/etc" "/su::/etc")