Zip/Unzip Extension #104

Closed
timwindsor opened this Issue Oct 2, 2012 · 11 comments

Comments

Projects
None yet
7 participants
Member

timwindsor commented Oct 2, 2012

Given a file path to a Zipped file, and a destination directory, unzip the file to the destination. Perhaps have it return a JSON object with the file list (with paths) and a message. Empty list and an error message returned if some problem occurs.

Very useful for different types of applications.

Member

timwindsor commented Oct 26, 2012

@starpax is taking this on

Contributor

nukulb commented Oct 26, 2012

Zipping is no trivial matter
~Nukul

From: Tim Windsor [mailto:notifications@github.com]
Sent: Friday, October 26, 2012 05:53 PM
To: blackberry/WebWorks-Community-APIs WebWorks-Community-APIs@noreply.github.com
Subject: Re: [WebWorks-Community-APIs] Zip/Unzip Extension (#104)

@starpaxhttps://github.com/starpax is taking this on


Reply to this email directly or view it on GitHubhttps://github.com/blackberry/WebWorks-Community-APIs/issues/104#issuecomment-9828251.


This transmission (including any attachments) may contain confidential information, privileged material (including material protected by the solicitor-client or other applicable privileges), or constitute non-public information. Any use of this information by anyone other than the intended recipient is prohibited. If you have received this transmission in error, please immediately reply to the sender and delete this information from your system. Use, dissemination, distribution, or reproduction of this transmission by unintended recipients is not authorized and may be unlawful.

Contributor

starpax commented Oct 26, 2012

I'm assuming I will be using either the bzip2 or zlib third-party libraries that come with the Native SDK for this extension. Am I right in saying that? Or do I have to unzip from scratch?

Contributor

nukulb commented Oct 26, 2012

Didn't know zlib was included
Give it a try, I will consider pulling that into the sdk. @epearson ia a zipping guru
~Nukul

From: starpax [mailto:notifications@github.com]
Sent: Friday, October 26, 2012 06:56 PM
To: blackberry/WebWorks-Community-APIs WebWorks-Community-APIs@noreply.github.com
Cc: Nukul Bhasin
Subject: Re: [WebWorks-Community-APIs] Zip/Unzip Extension (#104)

I'm assuming I will be using either the bzip2 or zlib third-party libraries that come with the Native SDK for this extension. Am I right in saying that? Or do I have to unzip from scratch?


Reply to this email directly or view it on GitHubhttps://github.com/blackberry/WebWorks-Community-APIs/issues/104#issuecomment-9829662.


This transmission (including any attachments) may contain confidential information, privileged material (including material protected by the solicitor-client or other applicable privileges), or constitute non-public information. Any use of this information by anyone other than the intended recipient is prohibited. If you have received this transmission in error, please immediately reply to the sender and delete this information from your system. Use, dissemination, distribution, or reproduction of this transmission by unintended recipients is not authorized and may be unlawful.

zlib is included with the NDK but that is only the algorithm for compression/decompression. There is more to a zip file than just that, you need the stuff that handles the zip format guts. There are many free libraries to do this that work with zlib. I am sure you can find one with a compatible license and make a lightweight extension for it.

Member

timwindsor commented Dec 12, 2012

Unzip support has been added. Zip support is still outstanding.

Contributor

peardox commented Apr 19, 2013

Can I point you guys at PHP's ZipArchive class (it's cool)
www.php.net/manual/en/class.ziparchive.php

This library lets you treat a ZIP almost like a mountable file-system you can write and read to / from

The PHP class lets you extract a blob directly into a variable without any disk writes

Member

ctetreault commented Jan 20, 2014

Going to work on this one.

@timwindsor timwindsor added this to the UCOSP Fall 2014 Projects milestone Aug 21, 2014

Contributor

rtholmes commented Sep 24, 2014

Is there any chance that community.extractZipFile.compress could be updated to take an array of file paths or is this a fundamental limitation of the underlying library?

Member

timwindsor commented Oct 7, 2014

@rtholmes I'm going to make a new issue for that request, since the rest of the feature is already done. See #328

@timwindsor timwindsor closed this Oct 7, 2014

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment