0

Is it possible to remove files inside zip archive with quazip ?

menjaraz
  • 7,551
  • 4
  • 41
  • 81
sss123next
  • 295
  • 1
  • 3
  • 13

1 Answers1

1

Unfortunately there is no function to do that.

As a work-around you can open the zip archive and then use RAW reading and writing to copy the files you want not to be deleted and put them in a new zip archive. Then delete the old archive.

This is not a very clean solution... Oh and it's not efficient either. For very huge archives it would take much time...

Exa
  • 4,020
  • 7
  • 43
  • 60
  • @Exa, thx, is here exists any other libraries for zip access ?, i can for example use another library just to clear archive, and quazip for adding/changing files – sss123next Jun 30 '11 at 08:29
  • This question might provide you with more ideas: http://stackoverflow.com/questions/262899/portable-zip-library-for-c-c-not-an-application – Exa Jun 30 '11 at 08:39
  • @Exa thx again, is any examples for accessing zip via lzma-sdk exists ? – sss123next Jun 30 '11 at 09:05
  • Unfortunately there is no real documentation :( But you can have a look at 7zC.txt and 7zFormat.txt which come with the sdk download. I've never worked with that so I can't tell you how it is done. :/ – Exa Jun 30 '11 at 09:32
  • @Exa i have tried lzma-sdk, than switched to xz-utils, i have need this for lzma stream compression, lzma-sdk looks unclear to me... – sss123next Jun 30 '11 at 09:35