Yuari
Documentation

dofile

Compiles and runs a file, returning its results.

Syntax

dofile(path: string) -> nil

Parameters

ParameterTypeDescription
pathstringA path inside the Yuari workspace.

Returns

TypeDescription
nilThis 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.