MCPcopy Create free account
hub / github.com/ConardLi/easy-llm-cli / downloadFile

Function downloadFile

scripts/telemetry_utils.js:63–73  ·  view source on GitHub ↗
(url, dest)

Source from the content-addressed store, hash-verified

61}
62
63export function downloadFile(url, dest) {
64 try {
65 execSync(`curl -fL -sS -o "${dest}" "${url}"`, {
66 stdio: 'pipe',
67 });
68 return dest;
69 } catch (e) {
70 console.error(`Failed to download file from ${url}`);
71 throw e;
72 }
73}
74
75export function findFile(startPath, filter) {
76 if (!fs.existsSync(startPath)) {

Callers 1

ensureBinaryFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected