[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?
- Function to know weither a dir is local or remote, Pascal Quesseveur, 2022/10/20
- Re: Function to know weither a dir is local or remote, Eli Zaretskii, 2022/10/20
- Re: Function to know weither a dir is local or remote, Jean Louis, 2022/10/20
- Re: Function to know weither a dir is local or remote, Pascal Quesseveur, 2022/10/20
- Re: Function to know weither a dir is local or remote, Eli Zaretskii, 2022/10/20
- Re: Function to know weither a dir is local or remote, Pascal Quesseveur, 2022/10/20
- Re: Function to know weither a dir is local or remote,
Eli Zaretskii <=
- Re: Function to know weither a dir is local or remote, Pascal Quesseveur, 2022/10/20
- Re: Function to know weither a dir is local or remote, Eli Zaretskii, 2022/10/20
- Re: Function to know weither a dir is local or remote, Pascal Quesseveur, 2022/10/21
- Re: Function to know weither a dir is local or remote, Eli Zaretskii, 2022/10/21
- Re: Function to know weither a dir is local or remote, tomas, 2022/10/21
- Re: Function to know weither a dir is local or remote, Stefan Monnier, 2022/10/25
- Re: Function to know weither a dir is local or remote, tomas, 2022/10/25
- Re: Function to know weither a dir is local or remote, Pascal Quesseveur, 2022/10/26
- Re: Function to know weither a dir is local or remote, Michael Albinus, 2022/10/26
- Re: Function to know weither a dir is local or remote, Pascal Quesseveur, 2022/10/26