Link Search Menu Expand Document

LovrFileAsset

A type of Asset generated from a file

Constructor

 my_asset = LovrFileAsset(path, load)

Arguments

Name Type Description
path string The path to the file

Returns

Type Description
LovrFileAsset The generated LovrFileAsset

Methods

lovrfileasset:path ()

Get the path to a LovrFileAsset

 path = LovrFileAsset:path()

Arguments

None

Returns

Type Description
string The path to the LovrFileAsset

lovrfileasset:size ()

Get the size of a LovrFileAsset

 path = LovrFileAsset:size()

Arguments

None

Returns

Type Description
string The size, in bytes, of the LovrFileAsset