From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Glenn Morris Newsgroups: gmane.emacs.help Subject: Re: Difference between file-accessible-directory-p() and file-readable-p() on a directory Date: Thu, 24 Sep 2009 18:04:22 -0700 Organization: None Message-ID: References: <2fb357c9-8fd6-4c2b-8e19-201865871b4e@33g2000vbe.googlegroups.com> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: 8bit X-Trace: ger.gmane.org 1253842848 985 80.91.229.12 (25 Sep 2009 01:40:48 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Fri, 25 Sep 2009 01:40:48 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Fri Sep 25 03:40:42 2009 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1Mqznd-0006lb-O9 for geh-help-gnu-emacs@m.gmane.org; Fri, 25 Sep 2009 03:40:41 +0200 Original-Received: from localhost ([127.0.0.1]:59867 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Mqznc-0007Bk-Pb for geh-help-gnu-emacs@m.gmane.org; Thu, 24 Sep 2009 21:40:40 -0400 Original-Path: news.stanford.edu!usenet.stanford.edu!not-for-mail Original-Newsgroups: gnu.emacs.help Original-Lines: 20 Original-NNTP-Posting-Host: xoc2.stanford.edu Original-X-Trace: usenet.stanford.edu 1253840662 19649 171.64.109.31 (25 Sep 2009 01:04:22 GMT) Original-X-Complaints-To: action@cs.stanford.edu X-Spook: efnet FALN Force 17 political Gerakin Aceh Merdeka X-Ran: N]m2:.>3SZuT;.b0Fq%ty|F]_3${YguMePC+HW8gMMboRXPdE#Z'4qrDUp:T963!1@0n%o X-Hue: magenta X-Attribution: GM Mail-Copies-To: nobody User-Agent: Gnus (www.gnus.org), GNU Emacs (www.gnu.org/software/emacs/) Cancel-Lock: sha1:FIzZEj34rWL4mHirsOTyoSkz5CM= Original-Xref: news.stanford.edu gnu.emacs.help:173336 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:68454 Archived-At: 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).