SFTP

libs.sftp.get().connect()

Requires the SFTP integration to be set up

Returns an instance of ssh2-sftp-client service instance.

// get connection
const client = await libs.sftp.get().connect();

// list directory content
const ls = await client.list('/some/remote/folder');

// to close connection
client.end();

Last updated