MCPcopy Create free account
hub / github.com/Acode-Foundation/Acode / Sftp

Function Sftp

src/fileSystem/sftp.js:586–588  ·  view source on GitHub ↗

* * @param {String} host * @param {Number} port * @param {String} username * @param {{password?: String, passPhrase?: String, keyFile?: String}} authentication

(host, port, username, authentication)

Source from the content-addressed store, hash-verified

584 * @param {{password?: String, passPhrase?: String, keyFile?: String}} authentication
585 */
586function Sftp(host, port, username, authentication) {
587 return new SftpClient(host, port, username, authentication);
588}
589
590Sftp.fromUrl = (url) => {
591 const { username, password, hostname, pathname, port, query } =

Callers 1

addSftpFunction · 0.50

Calls

no outgoing calls

Tested by

no test coverage detected