Skip to content

simple zip archiver for iOS

License

Notifications You must be signed in to change notification settings

biowink/minizip

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

minizip for iOS

Very much work-in-progress.

The minizip folder contains the files to use, of which

miniunz.c
minizip.mm
minizip.pc.in

are only for later reference, but are not used. Add the others to your project, then use like this:

NSDirectoryEnumerator *enumerator; // Assume we have this
NSURL *outputFileURL; // Assume we have this, too

NSError *error = nil;
BOMiniZipArchiver *archiver = [[BOMiniZipArchiver alloc] initWithFileURL:outputFileURL append:NO error:&error];
NSAssert(archiver != nil, @"%@", error);

for (NSURL *fileURL in enumerator) {
    NSAssert([archiver appendFileAtURL:fileURL error:&error], @"%@", error);
}

NSAssert([archiver finishEncoding:&error], @"%@", error);

Releases

No releases published

Packages

No packages published

Languages

  • Objective-C 76.7%
  • C 23.3%