[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: |
Lars Ingebrigtsen |
Subject: |
bug#43375: 26.1: file-directory-p returns t for empty string |
Date: |
Sun, 13 Sep 2020 15:34:33 +0200 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (gnu/linux) |
Andreas Schwab <schwab@linux-m68k.org> writes:
>> 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).
Yup. It should be documented, though, so I've now mentioned this quirk
in the doc string in Emacs 28.
--
(domestic pets only, the antidote for overdose, milk.)
bloggy blog: http://lars.ingebrigtsen.no