Skip to main content

ll_searchpath

Function ll_searchpath 

Source
pub fn ll_searchpath(state: &mut LuaState) -> Result<usize, LuaError>
Expand description

package.searchpath(name, path [, sep [, rep]]).

Returns the first readable file in path with sep occurrences in name replaced by rep. On failure returns luaL_pushfail (a nil, NOT false, on every version) plus the error message. See ll_loadlib for the same luaL_pushfail = lua_pushnil translation.