Function Directory-Pathname-P

Part of:

package trivial-shell
( directory-pathname-p < pathname > )

Does pathname syntactically represent a directory?

A directory-pathname is a pathname without a filename. The three
ways that the filename components can be missing are for it to be nil,
:unspecific or the empty string.