unsigned long long for file size
This commit is contained in:
parent
e332a8313d
commit
78ffb705da
|
@ -475,7 +475,7 @@
|
|||
if ([ident isEqualToString: @"Icon"])
|
||||
return [[NSWorkspace sharedWorkspace] iconForFileType: [[file objectForKey: @"Name"] pathExtension]];
|
||||
else if ([ident isEqualToString: @"Size"])
|
||||
return [NSString stringForFileSize: [[file objectForKey: @"Size"] unsignedIntValue]];
|
||||
return [NSString stringForFileSize: [[file objectForKey: @"Size"] unsignedLongLongValue]];
|
||||
else
|
||||
return [[file objectForKey: @"Name"] lastPathComponent];
|
||||
}
|
||||
|
|
|
@ -37,7 +37,6 @@
|
|||
|
||||
@end
|
||||
|
||||
|
||||
@implementation Torrent
|
||||
|
||||
- (id) initWithPath: (NSString *) path lib: (tr_handle_t *) lib
|
||||
|
@ -638,7 +637,7 @@
|
|||
file = fInfo->files[i];
|
||||
[files addObject: [NSDictionary dictionaryWithObjectsAndKeys: [[self downloadFolder]
|
||||
stringByAppendingPathComponent: [NSString stringWithUTF8String: file.name]], @"Name",
|
||||
[NSNumber numberWithUnsignedInt: file.length], @"Size", nil]];
|
||||
[NSNumber numberWithUnsignedLongLong: file.length], @"Size", nil]];
|
||||
}
|
||||
|
||||
return files;
|
||||
|
|
Loading…
Reference in New Issue