lua zip decompression

Posted by Victorious on Fri 20 Dec 2013 04:58 AM — 4 posts, 18,511 views.

#0
I've been thinking of extending the plugins updater here (http://dl.dropboxusercontent.com/u/65599194/html/Plugins_Updater_plugin.html) so that it will be able to decompress .zip files but I'm not sure which of the many decompression libraries out there I should use. Anyone has a suggestion on a library to look at - I would only need to decompress the .zip files, and the libraries that I've found are pretty complex and sadly way over my head :(.
Amended on Fri 20 Dec 2013 01:31 PM by Nick Gammon
Australia Forum Administrator #1
There is a Lua decompression function:

utils.decompress

That doesn't exactly do .zip files, but it is lets you decompress stuff.
Amended on Fri 20 Dec 2013 01:31 PM by Nick Gammon
USA Global Moderator #2
I just package an unzip program that I call with os.execute
#3
Thanks Fiendish for the suggestion - managed to add support for dozens of compressed archive formats using 7zip fairly easily.