/*********************************************************************** * exten.c * Extention for UNIX/WIN32 common API interface. * This source applies to UNIX. ***********************************************************************/ #include #include "exten.h" int isDirectory(struct dirent* pd) { struct stat st; if(stat(pd->d_name,&st)) return(0); else return(S_ISDIR(st.st_mode)); }