revZipReplaceItemWithFile

Typecommand
DictionaryLCS
LibraryLiveCode Script
Syntax
revZipReplaceItemWithFile <archivePath>, <itemName>, <filePath>
Summary

Replaces the contents of an item in a zip archive with the contents of a file.

Introduced2.7.3
OSmac, windows, linux, ios, android
Platformsdesktop, server, mobile
Parameters
NameTypeDescription
archivePath

The absolute path to the zip archive to process.

itemName

The name of the item in the zip archive to replace.

filePath

The absolute path to the file whose contents should be placed in the item to replace. If the revZipReplaceItemWithFile command encounters an error then the result will be set to an error code beginning with "ziperr", otherwise the result will be empty.

Example
revZipReplaceItemWithFile tArchive, "myZippedItem", myFile
revZipReplaceItemWithFile the cArchive of me, "Test.txt", "Test_New.txt"
RelatedCommand: revZipOpenArchive, revZipReplaceItemWithData
Glossary: command
Securitydisk, network
Description

Use the revZipReplaceItemWithFile command put the contents of a file on disk into one of the items of an open zip archive. The archive must have first been opened with the revZipOpenArchive command.

Tagstext processing