Skip to main content
Question

I have the problem that my zip file gets overwritten when a new file is should be added to the zip file, resulting in that all existing files in the zip file are lost. I'm using a fanout for the file to be written into a specific zip file.

  • September 1, 2020
  • 3 replies
  • 57 views

jan
Contributor
Forum|alt.badge.img+1
  • Contributor
  • 50 replies

The FME version is 2019.2

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

redgeographics
Celebrity
Forum|alt.badge.img+59
  • Celebrity
  • 3700 replies
  • September 1, 2020

That's default behaviour and I don't think it can be changed. Best thing to do is write to a temporary location and then use a SystemCaller to call a zip command line. I know 7Zip is capable of adding to existing zip files.

Annotation 2020-09-01 091153

Here's one I used a while ago to bulk-add a lot of files to a lot of existing zipfiles.


nielsgerrits
VIP
Forum|alt.badge.img+60
  • 2938 replies
  • September 1, 2020

As an alternative, you can use the ZipArchiver transformer from the hub.

ZipArchiverParameters

This is what I use, and prefer over the SystemCaller.


jan
Contributor
Forum|alt.badge.img+1
  • Author
  • Contributor
  • 50 replies
  • September 1, 2020

Hmm, that's funny, because a zip file has been treated as a folder previously in FME (I think)! Thank you for the reply!