MCPcopy Index your code
hub / github.com/yuin/gopher-lua / osRename

Function osRename

oslib.go:164–174  ·  view source on GitHub ↗
(L *LState)

Source from the content-addressed store, hash-verified

162}
163
164func osRename(L *LState) int {
165 err := os.Rename(L.CheckString(1), L.CheckString(2))
166 if err != nil {
167 L.Push(LNil)
168 L.Push(LString(err.Error()))
169 return 2
170 } else {
171 L.Push(LTrue)
172 return 1
173 }
174}
175
176func osSetLocale(L *LState) int {
177 // setlocale is not supported

Callers

nothing calls this directly

Calls 4

LStringTypeAlias · 0.85
CheckStringMethod · 0.80
PushMethod · 0.65
ErrorMethod · 0.65

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…