Ionic Zip Library v1.9.1.6
UpdateItem Method (itemName)
Add or update a file or directory in the zip archive.
Declaration Syntax
Parameters
- itemName (String)
- the path to the file or directory to be added or updated.
Remarks
This is useful when the application is not sure or does not care if the item to be added is a file or directory, and does not know or does not care if the item already exists in the ZipFile. Calling this method is equivalent to calling RemoveEntry() if an entry by the same name already exists, followed calling by AddItem().
For ZipFile properties including Encryption, Password, SetCompression, ProvisionalAlternateEncoding, ExtractExistingFile, ZipErrorAction, and CompressionLevel, their respective values at the time of this call will be applied to the ZipEntry added.