SFTP

libs.sftp.get().connect()

Requires the SFTP integration to be set up
Returns an instance of ssh2-sftp-client service instance.
1
// get connection
2
const client = await libs.sftp.get().connect();
3
​
4
// list directory content
5
const ls = await client.list('/some/remote/folder');
6
​
7
// to close connection
8
client.end();
Copied!
Last modified 9mo ago
Copy link