Commit Graph

48 Commits

Author SHA1 Message Date
Florian Bachmann
e171229257 get rid of these three warnings:
- Missing field 'tm_min' initializer
- Suggest braces around initialization of subobject
- Missing field 'dosDate' initializer
2012-05-09 08:38:19 -07:00
Sam Soffes
3a87f3ccfa Merge pull request #21 from EgoAleSum/patch-1
Fixed two warnings
2012-05-09 08:32:10 -07:00
Sam Soffes
df4ffca706 Merge pull request #22 from jparishy/preserve-symbolic-links
Preserve symbolic links. Fixes #5
2012-05-09 08:31:40 -07:00
Julius Parishy
64c542e090 Clean up and fix bug in test.
I commented out a bunch of NSLogs while debugging so I put those back
in, and fixed a bug where the test would crash if the symbolic link
failed to be created.
2012-05-09 11:14:56 -04:00
Julius Parishy
f900d38036 Symbolic Link support.
Adds support for ZIP files that include files that are symbolic links.
See the note in SSZipArchive.m for more information about that.
Includes a test that will probably only pass if you have GitHub for Mac
installed because that's the program I used as a test to symlink
against.

I created the symbolic link with 'ln -s /Applications/GitHub.app
SymbolicLink/GitHub.app' so I'm not entirely sure how it'll behave for
hard links, but I can't test that right now.
2012-05-09 11:12:04 -04:00
Alessandro Segala
9070c825f8 Fixed two warnings 2012-05-09 16:35:09 +02:00
Julius Parishy
bfc0904d14 Looking into the symbolic link issue.
http://www.pkware.com/documents/casestudies/APPNOTE.TXT
2012-05-09 08:18:19 -04:00
Sam Soffes
b27c74b04c Merge pull request #19 from jparishy/master
Fix for Issue #16. Closes #16
2012-05-08 20:35:18 -07:00
Julius Parishy
b6f7f605fe Fix for Issue #16
Fixes issues with files being truncated when their headers have values
that represent smaller uncompressed sizes then the actual data. This
generally fixes issues where the whatever program zipped the file
fucked up the headers. The fix makes ssziparchive behave like other
unzip utilities that ignore the header and decompress the actual data
until it's finished.

I've tested a bunch and all of the tests included pass, if any other
issues arrive I'd be glad to take additional time to look into it.

Includes a file, IncorrectHeaders.zip, that is a zip of a folder called
IncorrectHeaders which includes a single file, Readme.txt. I've
intentionally changed the header for that file to read 50 bytes intend
of the actual 59 for testing purposes.
2012-05-08 22:55:30 -04:00
Sam Soffes
f6eb58cc51 Verify delegate file indexes. Closes #18
Using `zip` in Terminal generates zip files with just the files you zip. If you use OS X's archiver, it will add hidden files making the indexes appear to be wrong.
2012-05-08 09:47:56 -07:00
Sam Soffes
5651fb2c1b Add ARC note to readme 2012-05-08 00:08:44 -07:00
Sam Soffes
cd0be3772a Version 0.2.0 2012-05-07 23:48:03 -07:00
Sam Soffes
a7c7978c42 Update Changelog.markdown 2012-05-07 23:46:20 -07:00
Sam Soffes
f7e9630fd0 Fix support for unzipping with password. Fixes #13 2012-05-07 23:41:24 -07:00
Sam Soffes
c4b61b7092 Improve unzipping progress delegate 2012-05-07 23:09:29 -07:00
Sam Soffes
23426fd0de Fixes for unzipping modification dates and add ARC support
* Add ARC support
* Fixes: One of the bugs is that the file modification dates for files being unzipped were wrong. Apparently the code was taking the MS-DOS date and time and treating it as an NSTimeInterval since Jan 1, 1980. This is not correct and was resulting in modification dates for me in 2014. — Brant Sears
* Fixes: The second bug was that the file modification dates for folders were showing up as the current date/time, but when I unzip the same archive using Apple's implementation of zip, the file modification dates for those folders were set sometime in the past. — Brant Sears
2012-05-07 23:08:49 -07:00
Johannes Ekberg
f78aa2c1be added Progress Delegate Support 2012-05-07 23:07:38 -07:00
Johannes Ekberg
13edbb940e Added Delegation Support 2012-05-07 23:06:51 -07:00
Sam Soffes
c05ee25f7f Fixes for unzipping modification dates and add ARC support
* Add ARC support
* Fixes: One of the bugs is that the file modification dates for files being unzipped were wrong. Apparently the code was taking the MS-DOS date and time and treating it as an NSTimeInterval since Jan 1, 1980. This is not correct and was resulting in modification dates for me in 2014. — Brant Sears
* Fixes: The second bug was that the file modification dates for folders were showing up as the current date/time, but when I unzip the same archive using Apple's implementation of zip, the file modification dates for those folders were set sometime in the past. — Brant Sears
2012-05-07 22:27:45 -07:00
Sam Soffes
2ad10f1713 Fix warnings 2012-05-07 22:12:09 -07:00
Sam Soffes
f487007ff2 Merge pull request #10 from jazzbox/jazzbranch
Improved writing
2012-01-09 09:32:42 -08:00
Bernd Ohr
dbad12bffb writeData: writing chunks is unnecessary and set file date to now 2011-12-27 17:25:34 +01:00
Bernd Ohr
0a7c36ffb7 Dont't import "minizip/zip.h" in the header file 2011-12-27 17:15:40 +01:00
Sam Soffes
cd31818aa4 Updated readme 2011-12-26 23:38:42 -05:00
Sam Soffes
34acd95f17 0.1.2 release 2011-12-26 23:33:44 -05:00
Johnnie Walker
4fa1e0d060 Add support for creating zip files
Basic zip files can be created (or appended to) by supplying the
path to a zip file and either paths to existing files or NSData
objects along with filenames.
2011-12-20 09:24:56 +00:00
Sam Soffes
ada9722309 Updated changelog for 0.1.1 2011-10-31 17:21:47 -07:00
Sam Soffes
db61203752 Upgrade to minizip 1.1
* Support zip files larger than 2GB. Fixes #7
* Updated readme
* Added (commented out) test for large files
2011-10-31 17:08:41 -07:00
Sam Soffes
5c0c39ff46 Added basic tests and changelog 2011-10-03 23:28:54 -07:00
Sam Soffes
65a8282c0b Merge pull request #6 from johnezang/master
commit sez it all, bayybee
2011-07-22 19:26:17 -07:00
John Engelhart
f24f550eb7 More source tidies. Remove actual or potential local variable symbol shadows, plus a few other non-functionality impacting changes. 2011-07-21 21:52:14 -07:00
John Engelhart
02417a4218 Code tidy: fixes the initialization of some variables so that they are completely initialized to known values. 2011-07-21 15:39:03 -07:00
Sam Soffes
53b5c58bb3 Updated license 2011-06-22 10:41:36 -07:00
Sam Soffes
54449c4c9e Updated to minizip 1.0h (with minor modifications to avoid warnings and analyzer issues) 2011-06-22 10:37:46 -07:00
Sam Soffes
76e8bf5e0b Fixed analyzer issue 2011-06-21 10:46:27 -07:00
Sam Soffes
f706803a1c Updated coding convention 2011-06-13 16:25:17 -07:00
Sam Soffes
9b2b20431c Fixed warnings 2011-05-31 21:34:37 -07:00
Sam Soffes
8e5de14303 Fixed warning 2011-05-31 10:14:29 -07:00
Sam Soffes
e885af5595 Updated readme 2011-05-27 16:37:02 -07:00
Sam Soffes
738e1f88b2 Merge pull request #4 from steipete/master
Fix some warnings in LLVM 2.1
2011-05-27 16:36:07 -07:00
Peter Steinberger
1929676481 fixes warning with llvm 2.1 2011-05-28 01:34:31 +02:00
Sam Soffes
c3ed902615 Fixed warning 2011-03-28 11:59:54 -07:00
Sam Soffes
711808a976 Renamed classes 2010-08-19 15:40:34 -05:00
Sam Soffes
e4fd78a88d Renamed 2010-08-19 15:27:48 -05:00
Sam Soffes
f56f20f4e4 Return error properly 2010-07-26 15:18:32 -05:00
Sam Soffes
1e9dd51066 Added error messages 2010-07-23 10:41:46 -05:00
Sam Soffes
e3c71aa54c Updated readme 2010-07-21 18:09:14 -05:00
Sam Soffes
09775a7765 Initial commit 2010-07-21 18:05:38 -05:00