Logo Search packages:      
Sourcecode: libgphoto2 version File versions

int gp_system_is_dir ( const char *  dirname  ) 

check if passed filename is a directory

Parameters:
dirname file name to check
Checks whether the passed in dirname is a directory and returns this as boolean.

Returns:
boolean flag whether passed filename is a directory.

Definition at line 251 of file gphoto2-port-portability.c.

                                           {
        struct stat st;

        if (stat(dirname, &st)!=0)
                return 0;
        return (S_ISDIR(st.st_mode));
}


Generated by  Doxygen 1.6.0   Back to index