Question - How-to - Filter output from SFTP to a single list

Greetings,

I have the following flow:

SFTP does some function (upload) and then I do SSH to list ls -l the directory files where I uploaded the files, everything works fine, however the it returns the results duplicates as the number of the items in the SFTP

What would be the best tip on how to get only the first item in the list of SFTP or SSH list?

Here is a screenshot of the duplicated items and I just need the one time the content in stdout #

07-08-2022.zip
08-08-2022.zip
09-08-2022.zip
10-08-2022.zip
11-08-2022.zip
12-08-2022.zip
13-08-2022.zip
14-08-2022.zip
15-08-2022.zip

Screen Shot 2022-08-15 at 1.32.25 PM

Thanks

1 Like

Hey @ansred,

Under the settings for the SSH node try telling it to execute only once that way it will run once rather than once for each input item.

3 Likes

Thank you good friend. That worked like a charm!

4 Likes