Skip to content

How to delete a file from a zipfile? #524

Answered by nmoinvaz
jinfeihan57 asked this question in Q&A
Discussion options

You must be logged in to vote

To remove an entry from a zip file, you can take a look at minizip_erase in minizip.c. It involves recreating the zip file without the specific entry you are deleting.

https://github.com/nmoinvaz/minizip/blob/3ecff07e3cf76b848b9d6b219302c1c5311aa281/minizip.c#L423

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by nmoinvaz
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants
Converted from issue

This discussion was converted from issue #524 on December 08, 2020 17:53.