File:getSize
EditReturns the size of the file, in bytes.
size, error = File:getSize()
Arguments
None
Returns
Name | Type | Description |
size | number | The size of the file, in bytes, or nil if an error occurred. |
error | string | The error message, if an error occurred. |