Revision ce2e0bdf pithos-macos/PithosUtilities.m
b/pithos-macos/PithosUtilities.m | ||
---|---|---|
876 | 876 |
+ (NSUInteger)bytesOfFile:(NSString *)filePath { |
877 | 877 |
NSFileManager *fileManager = [NSFileManager defaultManager]; |
878 | 878 |
NSDictionary *attributes = [fileManager attributesOfItemAtPath:filePath error:nil]; |
879 |
return [[attributes objectForKey:NSFileSize] intValue];
|
|
879 |
return [[attributes objectForKey:NSFileSize] unsignedIntegerValue];
|
|
880 | 880 |
} |
881 | 881 |
|
882 | 882 |
// Content type of the file or nil if it cannot be determined |
Also available in: Unified diff