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
  • 40 views

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

The FME version is 2019.2

3 replies

redgeographics
Celebrity
Forum|alt.badge.img+50

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+54

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
  • 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!


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