This sample shows how to output a specific directory structure within the zip file provided by the Data Download service.

How it works

The Fanout Dataset advanced parameter allows us to specify the directory structure for data to be written to.
 

To ensure that the data is written into the appropriate directory for the Data Download service to zip it, a parameter named 'FME_SERVER_DEST_DIR' must be created and then the Fanout Directory advanced parameter linked to the parameter. This parameter value is provided by FME Server when the job is run.
 

Then the desired directory structure can be set in the Fanout Prefix advanced parameter.

Usage

  • Publish this workspace to FME Server and register it with the Data Download service.
  • Open the FME Server Web User Interface and run the Data Download service.
  • Open the resulting zip file to reveal the directory structure.