Subject: Re: bug#57572: 29.0.50; Tramp error with tramp-file-name-unify

From: Michael Albinus <[email-masked]>
Date: Sat, 10 Sep 2022 19:44:58 +0200

Thierry Volpiatto <[email-masked]> writes:

Hi Thierry,

> I tried this and it seems to work without error:
>
> (file-accessible-directory-p
>  (if (string= (file-remote-p path 'localname) "")
>      ;; First connection
>      (concat path "/") ;; path == "/sudo:root@IPad-S340:" (see above)
>    path))
>
> Not sure if it is safe with other methods though, didn't try.

No, in general "/method:host:" isn't equal to "/method:host:/". So the
cache values would be kept for the wrong file.

> Thanks.

Best regards, Michael.