Skip to main content
Question

read all files in directory

  • April 30, 2020
  • 3 replies
  • 100 views

Forum|alt.badge.img

Hi ,

I need to do a conversion between 2 formats with many files in several directories ,how can I define that output directory =input directory

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.

3 replies

ebygomm
Influencer
Forum|alt.badge.img+44
  • Influencer
  • 3427 replies
  • April 30, 2020

What formats are you converting between? The answer may differ slightly depending on whether you are reading file based or folder based datasets


Forum|alt.badge.img
  • Author
  • 19 replies
  • April 30, 2020

3ds to collada


mark2atsafe
Safer
Forum|alt.badge.img+56
  • Safer
  • 2554 replies
  • April 30, 2020

This will probably help: https://knowledge.safe.com/questions/29907/write-the-result-on-the-same-folder-as-the-input.html

What you need to do is find the source directory (it is stored as an "FME Attribute" called "fme_dataset"). Then you use that in a fanout on the output. I'm not totally sure about collada. You may follow the instructions there to set the feature type name; otherwise it might need a fanout on the writer (look for the fanout setting in the Navigator window)