Hi,
Probably this setting does the trick for what you need.
Takashi
You can use dataset fanout in conjunction with featuretypefanout (on writer).
This way you can use an output/fanout attributes you created to control it.
Hi Takashi & Gio,
Thanks for your responses.
Takashi - your solution worked a treat! This will save me a cmd bat file to organise my files.
Cheers. Rob.
Hello,
I wish to output text files (it's a kind of Metadata) to various folders. My input has a folder named Forest and a subfolder named Native and inside Native I have my Native_Bush.TXT & Native_Trees.TXT( I have many other vegetation folders & subfolders & corresponding .TXT i.e Alpine/Plants/Alpine.TXT). I have many output folders to which i want to output my same Native_Bush & Native_Trees.TXT i.e Forest_1/ Native, Forest_2 /Native, Forest_3_Naive.
I have tried using the path C:/Forest/Native/*.TXT as a input & the Parameter Fetcher & String replacer transformers (if I remember correctly)& using Fanout with the output C:/Forest_*/Native/*.TXT. It doesn't work
Do you know how I could get it to work?
Thanks in advance.
Kind regards,
Dianne
Hi Dianne,
If you create the required file paths without drive name for each text line feature as their attribute (e.g. "_file_path"), this Fanout Dataset setting might work.
The "_file_path" should store file path without drive name, e.g.
\\Forest_1\\Native\\Native_Bush
\\Forest_1\\Native\\Native_Trees
\\Forest_2\\Native\\Native_Bush
\\Forest_2\\Native\\Native_Trees
and so on.
Takashi
Hi,
Probably this setting does the trick for what you need.
Takashi
Which dialog box is this? On my Text Writer, I only get one setting which is the Fanout Expression.
Hi,
Probably this setting does the trick for what you need.
Takashi
Hi @peterx, the interface for Fanout Dataset has been changed drastically in 2016. Look at the date of the post. The dialog shown in the post above is from FME 2014.
The current FME Workbench has modern and smarter interface - the Fanout Expression.
Hi Dianne,
If you create the required file paths without drive name for each text line feature as their attribute (e.g. "_file_path"), this Fanout Dataset setting might work.
The "_file_path" should store file path without drive name, e.g.
\\Forest_1\\Native\\Native_Bush
\\Forest_1\\Native\\Native_Trees
\\Forest_2\\Native\\Native_Bush
\\Forest_2\\Native\\Native_Trees
and so on.
Takashi
Hi Takashi,
Could you show how it would work for FME 2018.0?
I am trying to insert disclaimers/metadata into zipped folders (kml.zip, shp.zip, dwg.zip etc) but I am unable to figure out the wildcard settings of the FileCopy Writer to do so.
Thanks,
Doug
Hi Takashi,
Could you show how it would work for FME 2018.0?
I am trying to insert disclaimers/metadata into zipped folders (kml.zip, shp.zip, dwg.zip etc) but I am unable to figure out the wildcard settings of the FileCopy Writer to do so.
Thanks,
Doug
Hi @dmerrick, if your requirement is to add a common "metadata" file to several existing zip archives (kml.zip, shp.zip, dwg.zip etc), the Fanout Dataset functionality may not be a solution. Please post your issue as a new question with more specific description on the conditions and requirements.