Vital.sandbox
File

file.size

Shared

Retrieves the size of specified file


Syntax

local size = file.size(path)

Parameters

TypeNameDescription
stringpathFile path for size computation

Returns

TypeNameDescription
int / boolsizeComputed file size on successful execution, or false on failure

Examples

engine.print("File size:", file.size("files/images/test.png"))

On this page