MCPcopy Create free account
hub / github.com/mscdex/ssh2 / fastGet

Method fastGet

lib/protocol/SFTP.js:502–507  ·  view source on GitHub ↗
(remotePath, localPath, opts, cb)

Source from the content-addressed store, hash-verified

500 this.write(handle, buf, off, len, position, cb);
501 }
502 fastGet(remotePath, localPath, opts, cb) {
503 if (this.server)
504 throw new Error('Client-only method called in server mode');
505
506 fastXfer(this, fs, remotePath, localPath, opts, cb);
507 }
508 fastPut(localPath, remotePath, opts, cb) {
509 if (this.server)
510 throw new Error('Client-only method called in server mode');

Callers

nothing calls this directly

Calls 1

fastXferFunction · 0.85

Tested by

no test coverage detected