* Difference between file-accessible-directory-p() and file-readable-p() on a directory
@ 2009-09-24 10:17 Nordlöw
2009-09-25 1:04 ` Glenn Morris
0 siblings, 1 reply; 3+ messages in thread
From: Nordlöw @ 2009-09-24 10:17 UTC (permalink / raw
To: help-gnu-emacs
What's the difference between file-accessible-directory-p and file-
readable-p when the argument is a directory?
/Nordlöw
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: Difference between file-accessible-directory-p() and file-readable-p() on a directory
2009-09-24 10:17 Difference between file-accessible-directory-p() and file-readable-p() on a directory Nordlöw
@ 2009-09-25 1:04 ` Glenn Morris
2009-09-25 8:19 ` Eli Zaretskii
0 siblings, 1 reply; 3+ messages in thread
From: Glenn Morris @ 2009-09-25 1:04 UTC (permalink / raw
To: help-gnu-emacs
Nordlöw wrote:
> What's the difference between file-accessible-directory-p and file-
> readable-p when the argument is a directory?
mkdir foo bar
chmod 500 foo
chmod 400 bar
cd bar # Permission denied
cd foo # No problem
(file-accessible-directory-p "foo") ; t
(file-readable-p "foo") ; t
(file-accessible-directory-p "bar") ; nil
(file-readable-p "bar") ; t
You need execute permission to access a directory (on a Unix-type
system; no idea about Windows).
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: Difference between file-accessible-directory-p() and file-readable-p() on a directory
2009-09-25 1:04 ` Glenn Morris
@ 2009-09-25 8:19 ` Eli Zaretskii
0 siblings, 0 replies; 3+ messages in thread
From: Eli Zaretskii @ 2009-09-25 8:19 UTC (permalink / raw
To: help-gnu-emacs
> From: Glenn Morris <rgm+news@stanford.edu>
> Date: Thu, 24 Sep 2009 18:04:22 -0700
>
> You need execute permission to access a directory (on a Unix-type
> system; no idea about Windows).
There's no "execute permission" on Windows, on the level on which
`chmod' operates. Programs that want to see Posix-style mode bits,
such as Emacs, invent that bit when they see a directory or an
executable program/script.
(NTFS-style file security does have attributes for directory traversal
and for program execution permissions, but Emacs does not yet support
those, and neither do most ports of `chmod'.)
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2009-09-25 8:19 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-09-24 10:17 Difference between file-accessible-directory-p() and file-readable-p() on a directory Nordlöw
2009-09-25 1:04 ` Glenn Morris
2009-09-25 8:19 ` Eli Zaretskii
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.