File
file.exists
Shared
Retrieves the existence of specified file
Syntax
local valid = file.exists(path)Parameters
| Type | Name | Description |
|---|---|---|
string | path | File path to verify for existence |
Returns
| Type | Name | Description |
|---|---|---|
bool | valid | Specified file's existence |
Examples
engine.print("File exists:", file.exists("files/images/test.png"))