all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* Meaning of file-accessible-directory-p()
@ 2009-11-23  9:24 Nordlöw
  2009-11-23 11:08 ` Michael Albinus
  0 siblings, 1 reply; 2+ messages in thread
From: Nordlöw @ 2009-11-23  9:24 UTC (permalink / raw
  To: help-gnu-emacs

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


^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: Meaning of file-accessible-directory-p()
  2009-11-23  9:24 Meaning of file-accessible-directory-p() Nordlöw
@ 2009-11-23 11:08 ` Michael Albinus
  0 siblings, 0 replies; 2+ messages in thread
From: Michael Albinus @ 2009-11-23 11:08 UTC (permalink / raw
  To: Nordlöw; +Cc: help-gnu-emacs

Nordlöw <per.nordlow@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.




^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2009-11-23 11:08 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-11-23  9:24 Meaning of file-accessible-directory-p() Nordlöw
2009-11-23 11:08 ` Michael Albinus

Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.