MCPcopy Create free account
hub / github.com/DeusData/codebase-memory-mcp / cbm_download_to_file_quiet

Function cbm_download_to_file_quiet

src/cli/cli.c:6931–6942  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

6929}
6930
6931static int cbm_download_to_file_quiet(const char *url, const char *dest) {
6932 const char *protocol = cli_download_protocol(url);
6933 if (!protocol || !dest) {
6934 (void)fprintf(stderr, "error: checksum downloads require HTTPS (file:// is "
6935 "reserved for an explicit CBM_DOWNLOAD_URL test "
6936 "override)\n");
6937 return CLI_TRUE;
6938 }
6939 const char *argv[] = {"curl", "-fsSL", "--proto", protocol, "--proto-redir",
6940 protocol, "-o", dest, url, NULL};
6941 return cbm_exec_no_shell(argv);
6942}
6943
6944#endif /* CBM_CLI_ENABLE_TEST_API */
6945

Callers 1

verify_download_checksumFunction · 0.85

Calls 2

cli_download_protocolFunction · 0.85
cbm_exec_no_shellFunction · 0.85

Tested by

no test coverage detected