[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Help: how to obtain a correct file path from a possible absolute or
Re: Help: how to obtain a correct file path from a possible absolute or relative path considering remote environment
Fri, 3 Jan 2020 21:03:29 +0800
2020年1月3日 20:39，Michael Albinus <address@hidden> 写道：
> Attempt 3 seems to be OK to me. I don't understand your problem with
Here is my concern. Suppose the remote machine is Windows, and the
command line tool outputs an absolute path name "E:/xxx/xxx”.
Then maybe I suppose to generate a path like “scp:user@machine:E:/xxx/xxx”.
But `(file-name-absolute-p “E:/xxx/xxx”)’ is `nil’ (on a Linux local
machine) so it will end up with a path like
“scp:user@machine:<default-directory>/E:/xxx/xxx”, which is
However, currently I don’t have a Windows machine to test it out. So
above is just my guess.
> I do not expect Tramp to run process-file on a remote Windows machine.
Do you mean Tramp does not work if the remote machine is Windows? If
that is the case, I can close this question now :)