-(NSNumber *)getFileSize:(NSString *)fileName{
NSError *error = nil;
NSDictionary *attributes = [[NSFileManager defaultManager]
attributesOfItemAtPath:fileName error:&error];
if (!error) {
NSNumber *size = [attributes objectForKey:NSFileSize];
return size;
} else {
return [NSNumber numberWithFloat:-1];
}
}