3

I've got this situation where I need to remove a specific file from a ZIP archive. Within the application all handling of ZIP files is done using JclCompression. I was wondering if any of you know how to remove a specific file from a ZIP archive using JclCompression? (I couldn't find it)

Sir Rufo
  • 18,395
  • 2
  • 39
  • 73
RFerwerda
  • 1,267
  • 2
  • 10
  • 24

1 Answers1

6

So, I just accidentally ran into the solution:

Besides the TJclZipCompressionArchive and TJclDecompressionArchive the JclCompression library also provides a TJclZipUpdateArchive class. This class contains a method to remove a file from the archive.

zip.RemoveItem(PackedName);
RFerwerda
  • 1,267
  • 2
  • 10
  • 24