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

Function osRemove

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

Source from the content-addressed store, hash-verified

150}
151
152func osRemove(L *LState) int {
153 err := os.Remove(L.CheckString(1))
154 if err != nil {
155 L.Push(LNil)
156 L.Push(LString(err.Error()))
157 return 2
158 } else {
159 L.Push(LTrue)
160 return 1
161 }
162}
163
164func osRename(L *LState) int {
165 err := os.Rename(L.CheckString(1), L.CheckString(2))

Callers

nothing calls this directly

Calls 5

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

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…