| 235 | } |
| 236 | |
| 237 | int cliLuaMkdirs(lua_State* L) { |
| 238 | std::error_code err; |
| 239 | fs::create_directories(cliGetString(L, 1), err); |
| 240 | lua_pushboolean(L, !err); |
| 241 | if (err) lua_pushstring(L, err.message().c_str()); |
| 242 | return err ? 2 : 1; |
| 243 | } |
| 244 | |
| 245 | int cliLuaReadFile(lua_State* L) { |
| 246 | auto path = cliGetString(L, 1); |
nothing calls this directly
no test coverage detected