I have a path to file contained in an NSString. Is there a method to get its file size?
Swift 2.2:
do { let attr: NSDictionary = try NSFileManager.defaultManager().attributesOfItemAtPath(path) print(attr.fileSize()) } catch { print(error) }