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

Method fastPut

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

Source from the content-addressed store, hash-verified

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');
511
512 fastXfer(fs, this, localPath, remotePath, opts, cb);
513 }
514 readFile(path, options, callback_) {
515 if (this.server)
516 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