sqlparser/file.cpp
// Check if it is a directory
Check if it is a directory
Check if it is a directory
bool File::IsDirectory(_finddata_t *fileInfo)
{
	if(!fileInfo)
		return false;
	if((fileInfo->attrib & _A_SUBDIR) &&
		strcmp(fileInfo->name, ".") && strcmp(fileInfo->name, ".."))
		return true;
	return false;
}
bool File :: IsDirectory ( _finddata_t * fileInfo ) { if ( ! fileInfo ) return false ; if ( ( fileInfo -> attrib & _A_SUBDIR ) && strcmp ( fileInfo -> name , " " ) && strcmp ( fileInfo -> name , " " ) ) return true ; return false ; }
Check if it is a directory
Check if it is a directory
// skip current "." and parent ".." directory that are also returned