Search code examples
gozip

How add a file to an existing zip file using Golang


We can create a zip new file and add files using Go Language.

But, how to add a new file with existing zip file using GoLang?

If we can use Create function, how to get the zip.writer reference?

Bit confused.


Solution

  • After more analysis, i found that, it is not possible to add any files with the existing zip file.

    But, I was able to add files with tar file by following the hack given in this URL.