path

package
v0.4.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 8, 2016 License: MIT Imports: 5 Imported by: 0

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.

func LuaGlob

func LuaGlob(state *lua.LState) int

LuaGlob executes a file glob.

func LuaIsDir

func LuaIsDir(state *lua.LState) int

LuaIsDir returns true if the provided path segment exists and is a directory.

func LuaJoin

func LuaJoin(state *lua.LState) int

LuaJoin joins the provided path segments.

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL