Function Directory-Pathname-P

Part of:

package cl-fad
( directory-pathname-p < pathspec > )
Returns NIL if PATHSPEC (a pathname designator) does not designate
a directory, PATHSPEC otherwise. It is irrelevant whether file or
directory designated by PATHSPEC does actually exist.