[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: master 00b8c7e: Make ls-lisp.el behave like Posix hosts when directo
Re: master 00b8c7e: Make ls-lisp.el behave like Posix hosts when directory doesn't exist
Fri, 15 Feb 2019 16:51:57 +0100
Gnus/5.13 (Gnus v5.13) Emacs/27.0.50 (gnu/linux)
Eli Zaretskii <address@hidden> writes:
>> > + ;; Emulate what we do on Posix hosts when we call access-file
>> > + ;; in insert-directory.
>> > + (signal 'file-error
>> > + (list "Reading directory"
>> > + "Directory doesn't exist or is inaccessible"
>> > + file))))))
>> On GNU/Linux, it is `file-missing' (introduced in Emacs 26).
> I know. But ls-lisp doesn't know whether it failed because the
> directory doesn't exist, or does exist but isn't accessible, and
> trying to discern between these two situations doesn't seem worth it.
Hmm. This reminds me, that `tramp-test17-insert-directory' does not
check any error condition. If I would add this, this subtle detail would
(Not that anybody in real life would care ...)
Best regards, Michael.