(L *LState)
| 150 | } |
| 151 | |
| 152 | func 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 | |
| 164 | func osRename(L *LState) int { |
| 165 | err := os.Rename(L.CheckString(1), L.CheckString(2)) |
nothing calls this directly
no test coverage detected
searching dependent graphs…