MCPcopy Create free account
hub / github.com/acl-dev/acl / copy_files

Function copy_files

app/gson/src/main.cpp:39–59  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

37}
38
39static bool copy_files(const char* to_path)
40{
41 const char* files[] = {
42 "gson.cpp",
43 "gson.h",
44 NULL,
45 };
46
47 acl::string buf, filepath;
48
49 for (size_t i = 0; files[i] != NULL; i++)
50 {
51 buf.basename(files[i]);
52 filepath.format("%s/%s", to_path, buf.c_str());
53
54 if (copy_file(files[i], filepath) == false)
55 return false;
56 }
57
58 return true;
59}
60
61static void scan_path(std::vector<std::string>& files)
62{

Callers 1

mainFunction · 0.85

Calls 3

copy_fileFunction · 0.70
formatMethod · 0.45
c_strMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…