Skip to content

io

The plugin's io library almost identical to pure Lua 5.1/5.2/5.3/5.4 implementation.

Blocked standard implementations

io.input()
io.output()
io.read()
io.write()
io.stdout
io.stderr
io.stdin

New functions

boolean: io.ensure

io.ensure(string: folder)

Ensures that the specified folder exists.

string: io.datafolder()

io.datafolder()

Returns the path to unique data folder for the current script.

string: io.scrname()

io.scrname()

Returns the current script name.