[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: file-exists-p on empty string
From: |
Stefan Monnier |
Subject: |
Re: file-exists-p on empty string |
Date: |
Wed, 27 Feb 2019 20:16:45 -0500 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/27.0.50 (gnu/linux) |
> But what to do with `file-name-directory` function, which returns `nil` to
> empty string,
It also returns `nil` for "a" or ".".
That's just its way to say "there is no directory part in this file name".
So it seems completely consistent with file-exists-p returning t for "".
Stefan