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

Method files_copy

app/wizard/file_tmpl.cpp:215–237  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

213}
214
215bool file_tmpl::files_copy(const char* name, const FILE_FROM_TO* tab)
216{
217 string from, to;
218
219 from = "tmpl/Makefile.in";
220 to.format("%s/Makefile.in", path_to_.c_str());
221
222 if (!file_copy(from.c_str(), "Makefile.in")) {
223 return false;
224 }
225
226 for (size_t i = 0; tab[i].from != NULL; i++) {
227 from.format("%s/%s", path_from_.c_str(), tab[i].from);
228 //to.format("%s/%s", path_to_.c_str(), tab[i].to);
229 if (!file_copy(from, tab[i].to)) {
230 printf("create %s failed!\r\n", name);
231 return false;
232 }
233 }
234
235 printf("create %s ok!\r\n", name);
236 return true;
237}

Callers 10

create_threadsFunction · 0.80
create_fiberFunction · 0.80
create_procFunction · 0.80
create_master_threadsFunction · 0.80
create_master_fiberFunction · 0.80
create_master_procFunction · 0.80
create_master_aioFunction · 0.80
create_master_rpcFunction · 0.80
create_master_triggerFunction · 0.80
create_master_udpFunction · 0.80

Calls 3

file_copyFunction · 0.85
formatMethod · 0.45
c_strMethod · 0.45

Tested by

no test coverage detected