help-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Function to know weither a dir is local or remote


From: Eli Zaretskii
Subject: Re: Function to know weither a dir is local or remote
Date: Thu, 20 Oct 2022 13:27:52 +0300

> From: Pascal Quesseveur <pquessev@gmail.com>
> Date: Thu, 20 Oct 2022 11:35:14 +0200
> 
> >"EZ" == Eli Zaretskii <eliz@gnu.org> writes:
> 
>   EZ> Please show a recipe starting from "emacs -Q" where
>   EZ> file-remote-p doesn't work as advertised.
> 
> emacs 28.1 on Windows:
> 
> (file-remote-p "C:/Users/Public/Applis/appli") -> nil
> (file-truename "C:/Users/Public/Applis/appli") -> //server/applis/appli
> (file-remote-p (file-truename "C:/Users/Public/Applis/appli")) -> nil

These aren't remote file names.  Why did you expect file-remote-p to
return non-nil for a UNC?  A UNC doesn't have to be on a remote
computer.

What is the specific problem for which you needed to distinguish
between a file shared by another computer and a file on a local drive?



reply via email to

[Prev in Thread] Current Thread [Next in Thread]