while (de = PR_ReadDir(d, n++)) {
while ((de = PR_ReadDir(d, (PRDirFlags)(n++))) != NULL) {
pmHasAssertion (RDFT rdf, RDF_Resource u, RDF_Resource s, void* v, 		       RDF_ValueType type, PRBool tv){  if ((s == gCoreVocab->RDF_parent) && (type == RDF_RESOURCE_TYPE) &&      (resourceType(u) == PM_RT) && (containerp(u)) &&       (resourceType((RDF_Resource)v) == PM_RT) &&      (startsWith( resourceID(u), resourceID((RDF_Resource)v)))) {    PRDir* d = OpenMailDir( resourceID(u));    char* filePathname =  resourceID((RDF_Resource)v);    char* name = &filePathname[revCharSearch('/', filePathname)];    PRDirEntry* de;    int n = 0;    PRBool ans = 0;    while (de = PR_ReadDir(d, n++)) {      if (strcmp(name, de->name) == 0) {	ans = 1;	break;      }    }    PR_CloseDir(d);    return ans;  } else {    return 0;  }}