Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var Exports = map[string]lua.LGFunction{ "glob": LuaGlob, "base": LuaBase, "dir": LuaDir, "ext": LuaExt, "join": LuaJoin, "exists": LuaExists, "is_dir": LuaIsDir, }
Exports defines the exported functions in the path module.
View Source
var Module = gluamodule.New("path", Loader, doc.Module, )
Module is a gluamodule.Module that loads the path module.
Functions ¶
func Loader ¶
func Loader(l *lua.LState) int
Loader preloads the path module so that it can be required in lua scripts.
func LuaBase ¶
func LuaBase(state *lua.LState) int
LuaBase returns the basename of the path arguent provided.
func LuaDir ¶
func LuaDir(state *lua.LState) int
LuaDir returns the parent directory of the path arguent provided.
func LuaExists ¶
func LuaExists(state *lua.LState) int
LuaExists returns true if the provided path segment exists.
func LuaExt ¶
func LuaExt(state *lua.LState) int
LuaExt returns the file extension of the path arguent provided.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.