int Ns_UrlIsDir( char *hServer, char *URL );
The Ns_UrlIsDir function constructs a directory name by appending the URL to the current AOLserver pages directory for the specified server. It returns 1 if the directory exists.
See the example for Ns_UrlIsFile.