(L *LState)
| 162 | } |
| 163 | |
| 164 | func 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 | |
| 176 | func osSetLocale(L *LState) int { |
| 177 | // setlocale is not supported |
nothing calls this directly
no test coverage detected
searching dependent graphs…