revZipEnumerateItems

Typefunction
DictionaryLCS
LibraryLiveCode Script
Syntax
revZipEnumerateItems(<archivePath>)
Summary

Lists the items in a zip archive.

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

The absolute path to the archive to list items in

Example
put revZipEnumerateItems(tArchive) into tItems
if "myZippedItem" is among the lines \
      of revZipEnumerateItems(tArchive) then
  beep
end if
Values
NameTypeDescription
return

This function returns a list of item names, one per line, in the archive. If the archive is empty, or an error has occurred then revZipEnumerateItems will return empty.

RelatedCommand: revZipDeleteItem, revZipExtractItemToVariable, revZipOpenArchive
Glossary: command
Securitydisk, network
Description

Use the revZipEnumerateItems function to obtain a list of the items currently in an open zip archive. The archive must first have been opened with the revZipOpenArchive command.

Tagstext processing