Check if a directory that corresponds to a URL exists
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 virtual server. It returns 1 if the directory exists.
See the example for Ns_UrlIsFile.