[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
bug#57572: 29.0.50; Tramp error with tramp-file-name-unify
From: |
Michael Albinus |
Subject: |
bug#57572: 29.0.50; Tramp error with tramp-file-name-unify |
Date: |
Sat, 10 Sep 2022 19:44:58 +0200 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/29.0.50 (gnu/linux) |
Thierry Volpiatto <thievol@posteo.net> 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.