lovr.filesystem.getSize

Edit

Returns the size of a file, in bytes.

size = lovr.filesystem.getSize(file)

Arguments

NameTypeDescription
filestring The file.

Returns

NameTypeDescription
sizenumber The size of the file, in bytes.

Notes

If the file does not exist, an error is thrown.

See also