MCPcopy Create free account
hub / github.com/RGAA-Software/GoDesk / PrepareDirs

Function PrepareDirs

main.cpp:37–49  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

35std::shared_ptr<GrWorkspace> g_workspace = nullptr;
36
37bool PrepareDirs(const QString& base_path) {
38 std::vector<QString> dirs = {
39 "gr_logs", "gr_data", "gr_data/client", "gr_data/render", "gr_data/panel",
40 "gr_data/cache", "gr_dumps"
41 };
42
43 bool result = true;
44 for (const QString& dir : dirs) {
45 auto target_dir_path = base_path + "/" + dir;
46 FolderUtil::CreateDir(target_dir_path.toStdString());
47 }
48 return result;
49}
50
51int main(int argc, char *argv[]) {
52

Callers 1

mainFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected