UtilFunctions

Generic helper functions.

Constructors

this
this(LuaState lua)
Undocumented in source.

Members

Functions

copyFile
void copyFile(LuaObject self, string source, string dest)
Undocumented in source. Be warned that the author may not have intended to support it.
cwd
string cwd()
Undocumented in source. Be warned that the author may not have intended to support it.
dirExists
bool dirExists(LuaObject self, string path)
Undocumented in source. Be warned that the author may not have intended to support it.
fileExists
bool fileExists(LuaObject self, string path)
Undocumented in source. Be warned that the author may not have intended to support it.
fixPath
string fixPath(LuaObject self, string path)
Undocumented in source. Be warned that the author may not have intended to support it.
getTempDir
string getTempDir()

Creates a directory in the system's temporary directory and returns the path.

getTempFile
string getTempFile()

Creates a file in the system's temporary directory and returns the path.

listDir
string[] listDir(LuaObject self, string dir, string[] filter)
Undocumented in source. Be warned that the author may not have intended to support it.
pprint
void pprint(LuaObject self, LuaObject obj, int[] params)
Undocumented in source. Be warned that the author may not have intended to support it.
readFile
string readFile(LuaObject self, string path)
Undocumented in source. Be warned that the author may not have intended to support it.
removeDir
bool removeDir(LuaObject self, string path)

Recursively deletes the specified directory.

removeFile
bool removeFile(LuaObject self, string path)
Undocumented in source. Be warned that the author may not have intended to support it.
split
string[] split(LuaObject self, string str)
Undocumented in source. Be warned that the author may not have intended to support it.
strip
string strip(LuaObject self, string str)
Undocumented in source. Be warned that the author may not have intended to support it.
writeFile
void writeFile(LuaObject self, string path, string content)
Undocumented in source. Be warned that the author may not have intended to support it.

Variables

__lua
LuaState __lua;
Undocumented in source.

Meta