Check if File Exists on FTP

Is there a way to check to see if a file exists on a FTP server? I have a project that I'm leveraging the groups in a single project file - one group per customer. Essentially each group/customer I'm doing the same thing - obtaining a file/data from them, processing it. However some provide the file on a FTP server (not SFTP) so I just download it - problem comes when they don't have the file on the server for whatever reason the "Download File" action fails and the whole project stops, and the rest of the groups/customers are not processed.

I'm looking for a way to either have it just skip and continue the steps even if the file doesn't exist or a way I can check to see if the file exists first before attempting to download. I set it up this way because I didn't want to make many projects - one for each customer that I must maintain, I'd rather just edit the individual 'group' tab in the singular project.

You can do error handling in EasyMorph:

  1. Move downloading from FTP into a separate module. To make it more reusable, set the file path/name and connector as module parameters.
  2. Use the "Call" action in the "Capture errors" mode. In this mode the "Call" action doesn't fail if the called module fails. Instead, it returns a list of errors.
  3. Use conditional branching (e.g. the "Skip" action) to have a different logic if the list of errors is not empty.