Show
Ignore:
Timestamp:
07/05/10 17:33:37 (23 months ago)
Author:
gbooker
Message:

When upgrading, ignore parent.path and instead recompute it since previous database may be incorrect.

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • trunk/SapphireFrappliance/MetaData/SapphireMObjects/SapphireFileMetaData.m

    r1295 r1299  
    166166                NSString *path = [oldFile valueForKey:@"path"]; 
    167167                newFile.path = path; 
    168                 newFile.parent = [dirLookup objectForKey:[oldFile valueForKeyPath:@"parent.path"]]; 
     168                newFile.parent = [dirLookup objectForKey:[path stringByDeletingLastPathComponent]]; 
    169169                newFile.audioDescription = [oldFile valueForKey:@"audioDescription"]; 
    170170                newFile.audioFormatID = [oldFile valueForKey:@"audioFormatID"];