Changeset 619

Show
Ignore:
Timestamp:
07/03/08 23:34:58 (6 months ago)
Author:
gbooker
Message:

Corrected search of files for predicate matching:
"dir" contains no unwatched files
"dir a" contains unwatched files
"dir" was previously being marked as unwatched even though it wasn't

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • branches/CoreData/SapphireFrappliance/MetaData/SapphireMObjects/SapphireDirectoryMetaData.m

    r613 r619  
    103103{ 
    104104        NSManagedObjectContext *moc = [self managedObjectContext]; 
    105         NSPredicate *pathPredicate = [NSPredicate predicateWithFormat:@"path BEGINSWITH %@", self.path]; 
     105        NSPredicate *pathPredicate = [NSPredicate predicateWithFormat:@"path BEGINSWITH %@", [self.path stringByAppendingString:@"/"]]; 
    106106        NSPredicate *predicate; 
    107107        if(pred == nil) 
     
    457457{ 
    458458        NSManagedObjectContext *moc = [self managedObjectContext]; 
    459         NSPredicate *predicate = [NSPredicate predicateWithFormat:@"path BEGINSWITH %@", self.path]; 
     459        NSPredicate *predicate = [NSPredicate predicateWithFormat:@"path BEGINSWITH %@", [self.path stringByAppendingString:@"/"]]; 
    460460        if(filterPredicate != nil) 
    461461                predicate = [NSCompoundPredicate andPredicateWithSubpredicates:[NSArray arrayWithObjects:predicate, filterPredicate, nil]];