dofile
Compiles and runs a file, returning its results.
Syntax
dofile(path: string) -> nil
Parameters
| Parameter | Type | Description |
|---|---|---|
path | string | A path inside the Yuari workspace. |
Returns
| Type | Description |
|---|---|
nil | This function does not return a value. |
Description
dofile is part of the File system library. File functions are sandboxed to the executor workspace; paths outside it are rejected.
The operation is performed immediately using the arguments supplied at the call site.
Example
dofile("script.lua")
Notes
- Paths are sandboxed to the executor workspace.