library/src/blockclass/BP-BlockClass.cc
// searches the filesystem from specified rootDirPath for all
// the types that match the type specified.
searches the filesystem from specified rootDirPath for all
the types that match the type specified.
searches the filesystem from specified rootDirPath for all the types that match the type specified .
int Block::File_FindAllType(char *rootDirPath, BP_FILETYPE type, bool recursive)
{
	if(!rootDirPath)
		return ERR_FAILURE;
	if (this->fileList)
	{
		BP_DestroyFileList(this->fileList);
		this->fileList = NULL;
	}
	this->fileList = BP_FSFindAllType(rootDirPath, type, recursive, NULL);
	return ERR_SUCCESS;
}
int Block :: File_FindAllType ( char * rootDirPath , BP_FILETYPE type , bool recursive ) { if ( ! rootDirPath ) return ERR_FAILURE ; if ( this -> fileList ) { BP_DestroyFileList ( this -> fileList ) ; this -> fileList = NULL ; } this -> fileList = BP_FSFindAllType ( rootDirPath , type , recursive , NULL ) ; return ERR_SUCCESS ; }
searches the filesystem from specified rootDirPath for all
the types that match the type specified.
searches the filesystem from specified rootDirPath for all the types that match the type specified .
// ensure we have a root directory path // check to see if we have a file list and destroy // if necessary. // create file list // return indicating success