Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Meaning of file-accessible-directory-p()

3 views
Skip to first unread message

Nordlöw

unread,
Nov 23, 2009, 4:24:39 AM11/23/09
to
Is
(file-accessible-directory-p dir-name)
equivalent to
(and (file-directory-p dir-name) (file-readable-p dir-name))
?

Thanks in advance,
Nordlöw

Michael Albinus

unread,
Nov 23, 2009, 6:08:47 AM11/23/09
to Nordlöw, help-gn...@gnu.org
Nordlöw <per.n...@gmail.com> 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)));
UNGCPRO;
return tem ? Qnil : Qt;

However, on remote systems it could be different.

> Thanks in advance,
> Nordlöw

Best regards, Michael.


0 new messages