lovr.filesystem.getSize
EditReturns the size of a file, in bytes.
size, error = lovr.filesystem.getSize(file)Arguments
| Name | Type | Description |
| file | string | The file. |
Returns
| Name | Type | Description |
| size | number | nil |
The size of the file, in bytes, or nil if there was an error.
|
| error | string | nil | The error message, if the operation was not successful. |
Notes
If the file does not exist, an error is thrown.