I have a path to file contained in an NSString. Is there a method to get its file size?
Swift4:
let attributes = try! FileManager.default.attributesOfItem(atPath: path) let fileSize = attributes[.size] as! NSNumber