Go to the documentation of this file.
33 #include "io_lib_config.h"
38 #include <sys/types.h>
44 #define S_ISDIR(m) (((m)&S_IFMT) == S_IFDIR)
47 #define S_ISREG(m) (((m)&S_IFMT) == S_IFREG)
50 int is_directory(char * fn)
53 if ( stat(fn,&buf) )
return 0;
60 if ( stat(fn,&buf) )
return 0;
67 return ( stat(fn,&buf) == 0);
73 if ( stat(fn,&buf) != 0)
return 0;