Commit 0e3ed8d6 authored by Felix Paul Kühne's avatar Felix Paul Kühne

Replaced deprecated API call with the current one

No functional changes
parent be59c3f5
......@@ -206,7 +206,7 @@ NSString *kMLFileTypeTVShowEpisode = @"tvShowEpisode";
- (size_t)fileSizeInBytes
{
NSFileManager *manager = [NSFileManager defaultManager];
NSDictionary *fileAttributes = [manager fileAttributesAtPath:[[NSURL URLWithString:self.url] path] traverseLink:YES];
NSDictionary *fileAttributes = [manager attributesOfItemAtPath:[[[NSURL URLWithString:self.url] path] stringByResolvingSymlinksInPath] error:nil];
NSNumber *fileSize = [fileAttributes objectForKey:NSFileSize];
return [fileSize unsignedLongLongValue];
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment