Documentation
¶
Index ¶
- func Abs(L *lua.LState) int
- func Basename(L *lua.LState) int
- func Clean(L *lua.LState) int
- func Dir(L *lua.LState) int
- func EvalSymlinks(L *lua.LState) int
- func Ext(L *lua.LState) int
- func FromSlash(L *lua.LState) int
- func Glob(L *lua.LState) int
- func IsAbs(L *lua.LState) int
- func Join(L *lua.LState) int
- func ListSeparator(L *lua.LState) int
- func Loader(L *lua.LState) int
- func Match(L *lua.LState) int
- func Preload(L *lua.LState)
- func Rel(L *lua.LState) int
- func Separator(L *lua.LState) int
- func Split(L *lua.LState) int
- func SplitList(L *lua.LState) int
- func ToSlash(L *lua.LState) int
- func VolumeName(L *lua.LState) int
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Dir ¶
Dir lua filepath.dir(path) returns all but the last element of path, typically the path's directory
func EvalSymlinks ¶
EvalSymlinks returns the path name after the evaluation of any symbolic link.
func FromSlash ¶
FromSlash returns the result of replacing each slash ('/') character in path with a separator character. Multiple slashes are replaced by multiple separators.
func Glob ¶
Glob filepath.glob(pattern) returns the names of all files matching pattern or nil if there is no matching file.
func Join ¶
Join lua fileapth.join(path, ...) joins any number of path elements into a single path, adding a Separator if necessary.
func ListSeparator ¶
ListSeparator lua filepath.list_separator() OS-specific path list separator
func Preload ¶
Preload adds filepath to the given Lua state's package.preload table. After it has been preloaded, it can be loaded using require:
local filepath = require("filepath")
func Split ¶
Split splits path immediately following the final Separator, separating it into a directory and file name component.
func ToSlash ¶
ToSlash returns the result of replacing each separator character in path with a slash ('/') character. Multiple separators are replaced by multiple slashes.
func VolumeName ¶
VolumeName returns leading volume name. Given "C:\foo\bar" it returns "C:" on Windows. Given "\\host\share\foo" it returns "\\host\share". On other platforms it returns "".
Types ¶
This section is empty.