| 432 | | NSDictionary *props = [[NSFileManager defaultManager] fileAttributesAtPath:path traverseLink:YES]; |
| | 433 | if([file fileContainerTypeValue] == FILE_CONTAINER_TYPE_VIDEO_TS) |
| | 434 | { |
| | 435 | NSString *vtsPath = [[file path] stringByAppendingPathComponent:@"VIDEO_TS"]; |
| | 436 | NSEnumerator *fileEnum = [[fm directoryContentsAtPath:vtsPath] objectEnumerator]; |
| | 437 | NSString *file; |
| | 438 | while((file = [fileEnum nextObject]) != nil) |
| | 439 | { |
| | 440 | NSString *lowerFile = [file lowercaseString]; |
| | 441 | if([lowerFile hasSuffix:@".ifo"] && ![[lowerFile lastPathComponent] isEqualToString:@"video_ts.ifo"]) |
| | 442 | { |
| | 443 | path = [vtsPath stringByAppendingPathComponent:file]; |
| | 444 | break; |
| | 445 | } |
| | 446 | } |
| | 447 | } |
| | 448 | else |
| | 449 | path = [file path]; |
| | 450 | NSDictionary *props = [fm fileAttributesAtPath:path traverseLink:YES]; |