SFTP List Files

SFTP list files block

Description

List files from a directory once connected to a SFTP server

Properties

Connection Settings

The connection settings to connect to the SFTP server

// Sample Connection String
host=127.0.0.1&username=auser&password=apassword

Available Settings

  • host (url or ip address)

  • username ( username for the SFTP account)

  • password (password for the SFTP account)

  • port (port to connect to. Default is 22)

More connection settings options can be found at https://www.npmjs.com/package/ssh2-sftp-client

Remote Path

The remote path of the directory you want to list

Returns

An array of objects and file paths with access rights

NPM

This block uses ssh2-ftp-client from npm. (https://www.npmjs.com/package/ssh2-sftp-client)

Last updated