Skip to main content
Open

FTPCaller to process multiple files at once using a wildcard, not file name

Related products:Transformers
  • October 16, 2023
  • 1 reply
  • 15 views

vxn43
Supporter

Currently, FTPCaller can only process a single named file at a time. It would be nice to modify this transformer with the ability to process multiple files of the same type using a wildcard. For example, a user wants to upload 10 PDF files to an FTP site. Modify the FTPCaller parameters to allow the user to use *.pdf instead of explicitly using the file name for each file which would result in 10 transformer runs as opposed to if a wildcard was used there would only be a single run of the transformer, where all the pdf files in a folder would be grabbed at once and uploaded.

1 reply

grundlinghd
Participant
Forum|alt.badge.img
  • Participant
  • October 27, 2023

Hello,

 

I sorted a workaround - You are able to read in all XML files (Any FTP applicable item) within a folder and feed it into your FTPCaller.

1. Add a Directory and File Pathnames reader and call upon your folder. (Reader.png)

 

2. You are then presented with each of the files within the folder, all your relative path and file name attributes are listed.

 

3. Within your FTP caller you will use the ‘path_filename’ in your URL which reads each of the xml’s in a loop. You will ‘Upload from an Attribute’. You will use the ‘path_windows’ as your upload data attribute.


Cookie policy

We use cookies to enhance and personalize your experience. If you accept you agree to our full cookie policy. Learn more about our cookies.

 
Cookie settings