MCPcopy Create free account
hub / github.com/IppClub/Dora-SSR / cliLuaMkdirs

Function cliLuaMkdirs

Source/Basic/Application.cpp:237–243  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

235}
236
237int 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
245int cliLuaReadFile(lua_State* L) {
246 auto path = cliGetString(L, 1);

Callers

nothing calls this directly

Calls 6

create_directoriesFunction · 0.85
cliGetStringFunction · 0.85
lua_pushbooleanFunction · 0.50
lua_pushstringFunction · 0.50
c_strMethod · 0.45
messageMethod · 0.45

Tested by

no test coverage detected