directory-name-p

directory-name-p is a compiled Lisp function in `files.el'.

(directory-name-p NAME)

Return non-nil if NAME ends with a slash character.