Skip to Content
0
Jul 09, 2020 at 09:41 AM

Take 2 files with same name with File/FTP Sender Adapter in PO

158 Views

Hi,

I would like to take 2 files with same name but different extension from a folder in SFTP.

In that FTP folder we will have lots of pair files, for example 5 PDFs and 5 XMLs. Each pair of PDF + XML has same name:

File1.PDF

File1.XML

File2.PDF

File2.XML

...

What we need to do is to take every pair with same name: 1 PDF + 1 XML (File1.PDF + File1.XML), leaving in the folder the other 4 PDFs + 4 XMLs. We will take the other pairs next time.

Is this possible?

Thanks.