[GIS] Creating table containing contents of directory with FME 2014

fme

I have to match the contents of a directory with the attributes of a FeatureClass. The FeatureClass field contains the names (without file endings) of documents which are either .pdf or .jpg files.

I have two directories – one for PDFs and the other for JPGs. I need to match the PDF file names with the FeatureClass Attribute and if they match rename them with the PDF file ending. The ones that are not matched are then obviously JPG.

How can I create the list of files using FME2014?

Best Answer

As you indicated in your comment, this can be done with a Directory and File Pathnames Reader. In the reader parameters, you can set your Path Filter to only search PDF and JPG Files as so:

enter image description here

From there, you can join the results to your features using a FeatureMerger or Matcher transformer, depending on your workflow. You may need to do some string manipulation first, however.

Related Question