[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
bug#43375: 26.1: file-directory-p returns t for empty string
From: |
Boruch Baum |
Subject: |
bug#43375: 26.1: file-directory-p returns t for empty string |
Date: |
Sun, 13 Sep 2020 10:39:43 -0400 |
User-agent: |
NeoMutt/20180716 |
On 2020-09-13 15:06, Andreas Schwab wrote:
> On Sep 13 2020, Boruch Baum wrote:
>
> > I was expecting the follow to return nil, but it returns t
> >
> > (file-directory-p "")
>
> This is not a bug, as Emacs always works with expanded and canonicalized
> file names (the result of applying expand-file-name).
Then the docstring could be clearer and say "Return t if the expansion
of FILENAME names an existing directory" instead of simply the current
"Return t if FILENAME names an existing directory". Would that be an
acceptable change?
--
hkp://keys.gnupg.net
CA45 09B5 5351 7C11 A9D1 7286 0036 9E45 1595 8BC0