MCPcopy Create free account
hub / github.com/Samsung/UTopia / copy

Function copy

lib/utils/FileUtil.cpp:126–132  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

124}
125
126void copy(std::string src, std::string dest, bool isRecursive) {
127 std::string command = "cp ";
128 command += (isRecursive ? "-r " : "") + src + " " + dest;
129 std::cout << "[COMMAND] " << command << "\n";
130 auto Ret = system(command.c_str());
131 assert(Ret == 0 && "copy failed");
132}
133
134Json::Value parseJsonFileToJsonValue(const char *jsonPath) {
135 std::string configDoc = readFile(jsonPath);

Callers 6

generateMethod · 0.85
DEFINE_PROTO_FUZZERFunction · 0.85
DEFINE_PROTO_FUZZERFunction · 0.85
DEFINE_PROTO_FUZZERFunction · 0.85
DEFINE_PROTO_FUZZERFunction · 0.85
jsoncpp.cppFile · 0.85

Calls

no outgoing calls

Tested by 4

DEFINE_PROTO_FUZZERFunction · 0.68
DEFINE_PROTO_FUZZERFunction · 0.68
DEFINE_PROTO_FUZZERFunction · 0.68
DEFINE_PROTO_FUZZERFunction · 0.68