Show
Ignore:
Timestamp:
01/03/08 21:08:45 (4 years ago)
Author:
gbooker
Message:
  • Fixed clearing of metadata on dirs
  • Added ability to skip directories on import
  • Hooked up code to add/remove arbitrary dirs as collections (will not remove a mount)

(Not tested)
Fixes #15, #76

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • trunk/SapphireMetaData.m

    r438 r445  
    645645        [skipCollection setObject:[NSNumber numberWithBool:skip] forKey:collection]; 
    646646        [self writeMetaData]; 
     647} 
     648 
     649- (NSSet *)skipDirectories 
     650{ 
     651        NSMutableSet *ret = [NSMutableSet set]; 
     652        NSEnumerator *colEnum = [[self collectionDirectories] objectEnumerator]; 
     653        NSString *collection; 
     654        while((collection = [colEnum nextObject]) != nil) 
     655        { 
     656                if(![self skipCollection:collection]) 
     657                        [ret addObject:collection]; 
     658        } 
     659         
     660        return ret; 
    647661} 
    648662