Skip to main content
Solved

Extract files based on their filenames

  • March 9, 2015
  • 1 reply
  • 24 views

Forum|alt.badge.img+1
Hi,

 

 

I've asked this question before but never really got to the bottom of how to achieve this.  I have generated a list of filenames within a workbench that I want to select from a directory and then use in later parts of the workflow.

 

 

What is the simplest way to do this?

 

 

Thanks,

Best answer by jdh

If you want to read in the files mid-process, the easiest thing is to have one feature per filename and a FeatureReader where the Dataset parameter is set to an attribute containing the full path of the file.

 

 

Depending on the format of the file, and which version of FME your'e using, you may need to set the transformer to read a static file initially and then go back and change it to an attribute.
This post is closed to further activity.
It may be an old question, an answered question, an implemented idea, or a notification-only post.
Please check post dates before relying on any information in a question or answer.
For follow-up or related questions, please post a new question or idea.
If there is a genuine update to be made, please contact us and request that the post is reopened.

1 reply

jdh
Contributor
Forum|alt.badge.img+40
  • Contributor
  • Best Answer
  • March 9, 2015

If you want to read in the files mid-process, the easiest thing is to have one feature per filename and a FeatureReader where the Dataset parameter is set to an attribute containing the full path of the file.

 

 

Depending on the format of the file, and which version of FME your'e using, you may need to set the transformer to read a static file initially and then go back and change it to an attribute.