dcsex.io

IO - extensions to lua io

Contents

  1. Functions
    1. _t.extract(zippath, …)
    2. _t.joinPaths(…)
    3. _t.isDir(path)
    4. _t.readLua(file, tblname, env)
    5. _t.readConfigs(cfgfiles, tbl)
  2. Fields
    1. _t.pathSeperator

Functions

_t.extract(zippath, …)

Parameters

zippath
file path to target zip file
varadic list of file names to extract from the zip file

Returns

  • merged table

_t.joinPaths(…)

Parameters

varadic argument list of strings

Returns

  • joined string using the OS directory seperator

_t.isDir(path)

Parameters

path
string

Returns

  • True if path references a directory, false otherwise

_t.readLua(file, tblname, env)

Parameters

file
file path to lua file
tblname
(optional) specifies a specific environment key
env
(optional) environment to use

Returns

  • resultant symbols read from file, file string

_t.readConfigs(cfgfiles, tbl)

Parameters

cfgfiles
a table of configuration files to read
tbl
the table to store the configuration into

Fields

_t.pathSeperator