Filter files in SFTP action

Hi,

I have to connect to a FTP-server with a lot files. In the SFTP-action there’s no filter action except for the use of wildcards.

How can we filter files on the FTP-server so that we do not have to download ALL files on that server with every run of the flow?

Thanks !
Nikolaas

You can use the “SSH command” to get a list of files on the remote machine. Execute, for instance, the ls -la statement and capture the output. In the output, filter the files you need and use iterations to only download the necessary files.

See also: command line - What does 'ls -la' do? - Ask Ubuntu