lovr.filesystem.getSize

Returns the size of a file, in bytes.

size = lovr.filesystem.getSize(file)

Arguments

NameTypeDescription
filestringThe file.

Returns

NameTypeDescription
sizenumberThe size of the file, in bytes.

Notes

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

See also