file-directory-p

file-directory-p is a built-in function in `C source code'.

(file-directory-p FILENAME)

Return t if FILENAME names an existing directory.
Symbolic links to directories count as directories.
See `file-symlink-p' to distinguish symlinks.