all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Eli Zaretskii <eliz@gnu.org>
To: Thierry Volpiatto <thierry.volpiatto@gmail.com>
Cc: 15130@debbugs.gnu.org
Subject: bug#15130: 24.3.50; emacs-24.3.1 on Windows; possible `file-directory-p' bug.
Date: Tue, 20 Aug 2013 17:29:48 +0300	[thread overview]
Message-ID: <8361v0l9k3.fsf@gnu.org> (raw)
In-Reply-To: <874nakoa7q.fsf@gmail.com>

> From: Thierry Volpiatto <thierry.volpiatto@gmail.com>
> Cc: 15130@debbugs.gnu.org
> Date: Tue, 20 Aug 2013 13:47:21 +0200
> 
> BTW, actually using:
> 
>    (eq t (car (file-attributes (file-name-as-directory directory))))
> 
> seems to be an option to know if we really have a directory named " ".

I suggest to use file-accessible-directory-p instead of
file-attributes, the former is much cheaper on MS-Windows.

And if you are wondering why file-accessible-directory-p works where
file-directory-p doesn't, then the reason is that the latter
internally removes trailing slashes, so file-name-as-directory has no
effect in that case.





  reply	other threads:[~2013-08-20 14:29 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-08-19  8:47 bug#15130: 24.3.50; emacs-24.3.1 on Windows; possible `file-directory-p' bug Thierry Volpiatto
2013-08-19 15:43 ` Eli Zaretskii
2013-08-20  6:35   ` Thierry Volpiatto
2013-08-20  6:37   ` Thierry Volpiatto
2013-08-20 14:50     ` Eli Zaretskii
2013-08-20 11:47   ` Thierry Volpiatto
2013-08-20 14:29     ` Eli Zaretskii [this message]
2013-08-20 14:37       ` Thierry Volpiatto

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=8361v0l9k3.fsf@gnu.org \
    --to=eliz@gnu.org \
    --cc=15130@debbugs.gnu.org \
    --cc=thierry.volpiatto@gmail.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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.