MCPcopy Create free account
hub / github.com/devin87/Q.js / downloadFile

Function downloadFile

node/Q.js:2687–2800  ·  view source on GitHub ↗

* 下载文件 * @param {string} url 下载地址 * @param {string} dest 保存路径 * @param {function} cb 回调函数(data, errCode) * @param {object} ops 其它配置项 {headers,timeout,opts,agent,retryCount,skipStatusCode,progress:function(total,loaded){}} * @param {number} count 当前请求次数,默认为0

(url, dest, cb, ops, count)

Source from the content-addressed store, hash-verified

source not stored for this graph (policy: none)

Callers

nothing calls this directly

Calls 6

isObjectFunction · 0.70
extendFunction · 0.70
fire_http_completeFunction · 0.70
fireFunction · 0.70
fire_timeoutFunction · 0.70
fire_http_beforeSendFunction · 0.70

Tested by

no test coverage detected