| 306 | } |
| 307 | |
| 308 | int cliLuaMTime(lua_State* L) { |
| 309 | std::error_code err; |
| 310 | auto time = fs::last_write_time(cliGetString(L, 1), err); |
| 311 | lua_pushnumber(L, err ? 0.0 : s_cast<lua_Number>(time.time_since_epoch().count())); |
| 312 | return 1; |
| 313 | } |
| 314 | |
| 315 | int cliLuaSystem(lua_State* L) { |
| 316 | auto command = cliGetString(L, 1); |
nothing calls this directly
no test coverage detected