Skip to main content
Question

Datadownload service fanout directory


jdh
Contributor
Forum|alt.badge.img+28
  • Contributor

When using a fanout on a writer and the fme server datadownload service, is it possible to get a zipfile that does not include the top level directory "dataset"?

ex.

Destination Fanout Directory : $(FME_SERVER_DEST_DIR)

 

Fanout Expression: A\\file

 

will produce a zipfile containing

 

dataset\\A\\file

 

and what I would like is just

 

A\\file

 

6 replies

Forum|alt.badge.img+2
Hi @jdh

 

Is this using FME Server 2017?

erik_jan
Contributor
Forum|alt.badge.img+17
  • Contributor
  • July 13, 2017

I have had the same issue using the $(FME_SERVER_SHAREDRESOURCE_DATA) as a destination folder.

That too adds the folder to the ZIP download.


jdh
Contributor
Forum|alt.badge.img+28
  • Author
  • Contributor
  • July 13, 2017
jlutherthomas wrote:
Hi @jdh

 

Is this using FME Server 2017?
At the moment, I'm using 2016, but I will be upgrading to 2017.1 in August (assuming it's released).

 

 


erik_jan
Contributor
Forum|alt.badge.img+17
  • Contributor
  • July 13, 2017
erik_jan wrote:

I have had the same issue using the $(FME_SERVER_SHAREDRESOURCE_DATA) as a destination folder.

That too adds the folder to the ZIP download.

And I noticed this in FME Server 2016 and 2017.

 

 


Forum|alt.badge.img+2

Hi @erik_jan and @jdh

I think I may have an answer, shown as images:

 

 

In workbench:

 

Result of the download (unzipped):

 

 

Some more findings:

 

 

If I leave dest destination folder empty, or assigned to a parameter it gives me the folder called 'dataset' within the zip folder and then all of the data.

 

If in workbench I set the destination directory to Desktop (for example) it goes zip > Desktop > data (instead of zip > dataset > data). It always seems to pick up the last folder in the path to use as the top level folder.

 

If I set the output director in workbench to just be a . (working directory) it goes zip > folder (named the same as zip file) > data

 

 


jdh
Contributor
Forum|alt.badge.img+28
  • Author
  • Contributor
  • July 19, 2017
jlutherthomas wrote:

Hi @erik_jan and @jdh

I think I may have an answer, shown as images:

 

 

In workbench:

 

Result of the download (unzipped):

 

 

Some more findings:

 

 

If I leave dest destination folder empty, or assigned to a parameter it gives me the folder called 'dataset' within the zip folder and then all of the data.

 

If in workbench I set the destination directory to Desktop (for example) it goes zip > Desktop > data (instead of zip > dataset > data). It always seems to pick up the last folder in the path to use as the top level folder.

 

If I set the output director in workbench to just be a . (working directory) it goes zip > folder (named the same as zip file) > data

 

 

For some reason I had to recreate the workspace from scratch, but putting " ." in the fanout dir is now producing a zip file with the desired folder structure.

Reply


Cookie policy

We use cookies to enhance and personalize your experience. If you accept you agree to our full cookie policy. Learn more about our cookies.

 
Cookie settings