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.
pathname
nil
:unspecific