MCPcopy Create free account
hub / github.com/anus-dev/ANUS / downloadFile

Function downloadFile

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

Source from the content-addressed store, hash-verified

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

Callers 1

ensureBinaryFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected