ap_is_directory — checks whether a path refers to a directory
int ap_is_directory(const char *path)
Returns nonzero if path is a directory.
path