Changeset 1176 for branches

Show
Ignore:
Timestamp:
02/25/10 09:57:07 (2 years ago)
Author:
gbooker
Message:

Corrected path for import for video_ts directories.

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • branches/PlayerFramework/SapphireFrappliance/MetaData/SapphireMObjects/SapphireFileMetaData.m

    r1173 r1176  
    428428                updated=TRUE ; 
    429429                NSMutableDictionary *fileMeta = [NSMutableDictionary dictionary]; 
    430                 NSString *path; 
     430                NSString *path = [file path]; 
     431                NSString *modifiedPath = path; 
    431432                NSFileManager *fm = [NSFileManager defaultManager]; 
    432433                 
     
    441442                                if([lowerFile hasSuffix:@".ifo"] && ![[lowerFile lastPathComponent] isEqualToString:@"video_ts.ifo"]) 
    442443                                { 
    443                                         path = [vtsPath stringByAppendingPathComponent:file]; 
     444                                        modifiedPath = [vtsPath stringByAppendingPathComponent:file]; 
    444445                                        break; 
    445446                                } 
    446447                        } 
    447448                } 
    448                 else 
    449                         path = [file path]; 
    450                 NSDictionary *props = [fm fileAttributesAtPath:path traverseLink:YES]; 
     449                NSDictionary *props = [fm fileAttributesAtPath:modifiedPath traverseLink:YES]; 
    451450                int modTime = [[props objectForKey:NSFileModificationDate] timeIntervalSince1970]; 
    452451                /*Set modified, size, and version*/