Commit Graph

107 Commits

Author SHA1 Message Date
Antoine Cœur 44329ab1a1 avoiding calling the completionHandler twice 2017-09-10 02:49:18 +08:00
Antoine Cœur bdbe304da3 applying some suggestions from AppCode 2017-09-09 23:05:11 +08:00
Antoine Cœur 75dad5ea8d adding a tvos 9.0 target for Carthage 2017-09-09 14:01:27 +08:00
Robert Cain 790b2c1454 Fixes Analyze: Local variable conflicts
with outer success variable
2017-08-24 17:45:08 +01:00
Ibrahim Sha'ath 6781d97343 Guard against the receipt of empty paths 2017-08-01 16:08:00 -07:00
Ibrahim Sha'ath 2a248f6b55 Add missing nullability specifier 2017-08-01 16:07:22 -07:00
Joshua Hudson e0a74bddd4 fix crash if device is out of space instead of returning error. Thanks @markonikolvski #361 2017-08-01 10:17:37 -07:00
Joshua Hudson 804e9e5a6f Merge pull request #355 from Jnis/patch-2
Unzipping when no space; Stop unzipping when failed;
2017-07-24 16:03:45 -07:00
Antoine Cœur c8a6eedf78 removed comment 2017-07-24 20:19:49 +08:00
Antoine Cœur f5b2feed1c we do not support MRC 2017-07-24 20:14:06 +08:00
Jnis 0516ff2f90 Unzipping when no space; Stop unzipping when failed; 2017-07-24 10:07:37 +04:00
Joshua Hudson 66ab1372d8 Remove warnings from the 2.0 release 2017-07-19 12:33:46 -07:00
Joshua Hudson 6fc5255676 Merge pull request #345 from june20com/master
Added support for overwriting existing symlinks
2017-07-17 09:04:50 -07:00
Joshua Hudson 75530e03e7 Merge pull request #348 from ZipArchive/Coeur-permissions
adding read+write permissions
2017-07-17 08:31:44 -07:00
Antoine Cœur d1d501d1d9 adding read+write permissions
This would grant read+write to all uncompressed files. An alternative way to implement it would be to make it an option.
2017-07-12 13:17:07 +08:00
Joshua Hudson eb4b6d1974 Merge branch 'master' into 2.0 2017-06-27 17:46:09 -07:00
Paulo Fierro 1ff099811e Added support for overwriting existing symlinks
Also added errors if these operations fail.
2017-06-22 12:57:32 -05:00
Antoine Cœur f13ff57501 latest minizip 2017-06-22 12:06:35 +08:00
Antoine Cœur db911cf076 same FailedOpen error code is used for other files too 2017-06-22 03:28:37 +08:00
Joshua Hudson 98eeb1a862 Merge pull request #328 from MaddTheSane/fileSysRep
Use -fileSystemRepresentation for file names
2017-03-28 10:35:48 -07:00
Joshua Hudson 18703ddb15 Merge pull request #322 from Gucky/master
Public constants for error domain and error codes
2017-03-28 10:35:31 -07:00
Joshua Hudson fc6123aae5 Merge pull request #318 from Coeur/errorForCompletionHandler
giving an NSError to completionHandler on failure
2017-03-28 10:34:37 -07:00
C.W. Betts 6614014ecc Fix duplicate symbols of SSZipArchiveErrorDomain. 2017-03-28 09:14:39 -06:00
C.W. Betts ea2f4fc321 Use -fileSystemRepresentation for file names. 2017-03-28 09:04:05 -06:00
Wolfgang Muhsal e451317de6 Public constants for error domain and error codes 2017-03-15 10:57:46 +01:00
Antoine Cœur 05789bd171 giving an NSError to completionHandler on failure; always calling completionHandler 2017-02-24 14:04:41 +08:00
Antoine Cœur 451fadc9be more consistent code format 2017-02-24 13:32:28 +08:00
Antoine Cœur 23db0c4b7d Xcode warning: if directoryCreated is false, we can’t call writeToFile:atomically:encoding:error: 2017-01-28 22:47:43 +08:00
David Evans 84a96fc298 Added ability to retrieve zip creation progress.
Fixed a issue that was caused in the previous PR regarding this feature.
2017-01-23 19:45:35 +00:00
Joshua Hudson d7751a54f5 Revert "Added support for getting zip file creation progress." 2017-01-23 11:05:24 -08:00
Joshua Hudson 58cd06b7d8 Merge pull request #307 from Davidde94/master
Added support for getting zip file creation progress.
2017-01-23 11:00:41 -08:00
Joshua Hudson 4fcec5bf76 Merge pull request #299 from polac24/master
Define NSError as nullable argument of completionHandler
2017-01-23 10:57:06 -08:00
David Evans 97cd6424fd Added changes left out in last commit.
Users can now provide a callback to retrieve real-time statistics on
the progress of zipping files.
2017-01-21 18:29:28 +00:00
David Evans 0c98af7f9e Added support for retrieving zip progress information.
No additional information required.
2017-01-21 01:05:45 +00:00
Bartosz Polaczyk a13812407b Define NSError as nullable argument of completionHandler
In order to expose it as Error? in Swift3 rather than Error
2016-11-09 10:55:14 +01:00
Felix Ritter 46ebe69295 Ensure we are not creating stale file entries in unzipFileAtPath 2016-11-05 15:16:16 +01:00
Felix Ritter c08241ef19 added isPasswordValidForArchiveAtPath method 2016-11-05 15:14:30 +01:00
Joshua Hudson ab77a21ffc Revert "Extended to allow passing in directory or file to unzip to" 2016-09-27 20:38:52 -07:00
Joshua Hudson f4c0147086 Merge pull request #285 from priya87/master
Bug fix: feof() creates infinite loop.
2016-09-14 10:34:28 -07:00
priya TIROUNARAYANANE 650c6fb0ab Bug fix: feof() creates infinite loop. 2016-09-14 10:05:00 +02:00
Sam Singh d1e5f47e29 Extended to allow passing in directory or file to unzip to 2016-09-05 20:40:00 -04:00
Jakey 391c6e75bb if filename contains chinese dir transform Encoding 2016-08-10 14:44:44 +08:00
Joshua Hudson 82534a7cba Merge pull request #264 from sibext/PerformanceImprovements
Performance improvements with zip files that have large amounts of files.
2016-07-13 09:02:47 -07:00
Artyom Gladkov 0820787fc6 Add additional public unzipping method to allow skipping of operations on files' attributes.
Operations with files' attribute are performance bottleneck and for some tasks and archives it is overkill.
2016-07-13 14:15:13 +06:00
Artyom Gladkov ae9a5b5fdf Change collection type for 'directoriesModificationDates' from NSMutableSet to NSMutableArray.
The performance of NSMutableSet degradates very rapidly on increasing of archive size (count of files). Especially it becomes when costly to add new files to it.
2016-07-13 12:59:44 +06:00
Artyom Gladkov 40d2eb9b1a Set YES to symlinked files during unzipping. 2016-07-13 10:56:30 +06:00
Joshua Hudson 3050c9a340 Merge pull request #260 from bdunayAGL/master
Nullablilty Annotations for better swift support
2016-07-06 15:23:25 -07:00
Bill Dunay 99d98ac5e8 Added nullablilty annotations to the framework. 2016-07-06 17:44:47 -04:00
Joshua Hudson d1af8a01ea Merge pull request #261 from sibext/RunOutOfSpaceFix
Check for: Run out of space issue
2016-07-06 12:18:12 -07:00
Artyom Gladkov 701400d06f Add errors forwarding on 'run out of space issue' 2016-07-06 18:29:55 +06:00