Get file size using NSFileManager

No comments on Get file size using NSFileManager

Written by

in

To get file size in bytes using NSFileManager do the following:

NSDictionary *attrs = [[NSFileManager defaultManager] attributesOfItemAtPath:_filePath error:nil];
_size = [attrs fileSize];

Comments

Leave a Reply

Your email address will not be published. Required fields are marked *