|
|
|
|
760
|
totalSpace = [fileSystemSizeInBytes unsignedLongLongValue];
|
760
|
totalSpace = [fileSystemSizeInBytes unsignedLongLongValue];
|
761
|
totalFreeSpace = [freeFileSystemSizeInBytes unsignedLongLongValue];
|
761
|
totalFreeSpace = [freeFileSystemSizeInBytes unsignedLongLongValue];
|
762
|
callback(@[[NSNull null], @{
|
762
|
callback(@[[NSNull null], @{
|
763
|
- @"free" : [NSString stringWithFormat:@"%ld", totalFreeSpace],
|
|
|
764
|
- @"total" : [NSString stringWithFormat:@"%ld", totalSpace]
|
|
|
|
|
763
|
+ @"free" : [NSNumber numberWithUnsignedLongLong: totalFreeSpace],
|
|
|
764
|
+ @"total" : [NSNumber numberWithUnsignedLongLong: totalSpace],
|
765
|
}]);
|
765
|
}]);
|
766
|
} else {
|
766
|
} else {
|
767
|
callback(@[@"failed to get storage usage."]);
|
767
|
callback(@[@"failed to get storage usage."]);
|