Subject: Re: bug#10489: 24.0.92; dired-do-copy may create infinite directory hierarchy

From: Michael Albinus <[email-masked]>
Date: Fri, 13 Jan 2012 16:14:15 +0100

Juanma Barranquero <[email-masked]> writes:

> On Fri, Jan 13, 2012 at 15:14, Drew Adams <[email-masked]> wrote:
>
>>  (and (equal (file-remote-p file1) (file-remote-p file2))
>
> Why is the file-remote-p needed?

For some simple cases, `file-remote-p' does the correct expansion.

(file-remote-p "/sudo::") => "/sudo:root@host:"

With this expansion, "/sudo::/path/file" and "/sudo:host:/path/file"
would be equal.

> Juanma

Best regards, Michael.