Inherits from ZZArchive : NSObject
Declared in ZZArchive.h

Overview

The ZZMutableArchive class represents a zip file for reading and writing.

Instance Methods

updateEntries:error:

Updates the entries and writes them to the source.

- (BOOL)updateEntries:(NSArray *)newEntries error:(NSError **)error

Parameters

newEntries

The entries to update to, may contain some or all existing entries.

error

The error information when an error occurs. Pass in nil if you do not want error information.

Return Value

Whether the update was successful or not.

Discussion

If the write fails and the entries are completely new, the existing zip file will be untouched.

If the write fails and the entries contain some or all existing entries, the zip file may be corrupted. In this case, the error information will report the ZZReplaceWriteErrorCode error code.

Declared In

ZZArchive.h