File
file.size
Shared
Retrieves the size of specified file
Syntax
local size = file.size(path)Parameters
| Type | Name | Description |
|---|---|---|
string | path | File path for size computation |
Returns
| Type | Name | Description |
|---|---|---|
int / bool | size | Computed file size on successful execution, or false on failure |
Examples
engine.print("File size:", file.size("files/images/test.png"))