| 154 | |
| 155 | |
| 156 | static int os_remove (lua_State *L) { |
| 157 | const char *filename = luaL_checkstring(L, 1); |
| 158 | errno = 0; |
| 159 | return luaL_fileresult(L, remove(filename) == 0, filename); |
| 160 | } |
| 161 | |
| 162 | |
| 163 | static int os_rename (lua_State *L) { |
nothing calls this directly
no test coverage detected