I am using [NSFileManager attributesOfItemAtPath:error:] function for fetching attributes of file. But sometimes my application cpu is going upto 100%. I am usi
[NSFileManager attributesOfItemAtPath:error:]
I am using stat.
stat
#import struct stat stat1; if( stat([inFilePath fileSystemRepresentation], &stat1) ) // something is wrong long long size = stat1.st_size; printf("Size: %lld\n", stat1.st_size);