[Top][All Lists]

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

Re: Meaning of file-accessible-directory-p()

From: Michael Albinus
Subject: Re: Meaning of file-accessible-directory-p()
Date: Mon, 23 Nov 2009 12:08:47 +0100
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/23.1.50 (gnu/linux)

Nordlöw <address@hidden> writes:

> Is
>   (file-accessible-directory-p dir-name)
> equivalent to
>   (and (file-directory-p dir-name) (file-readable-p dir-name))
> ?

The implementation in fileio.c is

  GCPRO1 (filename);
  tem = (NILP (Ffile_directory_p (filename))
         || NILP (Ffile_executable_p (filename)));
  return tem ? Qnil : Qt;

However, on remote systems it could be different.

> Thanks in advance,
> Nordlöw

Best regards, Michael.

reply via email to

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