Subject: bug#43375: 26.1: file-directory-p returns t for empty string

From: Lars Ingebrigtsen <[email-masked]>
Date: Sun, 13 Sep 2020 15:34:33 +0200

Andreas Schwab <[email-masked]> 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