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