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.

See also