Name
zip.GetObjectType -- get zip archive object type
Synopsis
type = zip.GetObjectType()
Function
This function returns the object type used by zip archives opened using the zip.OpenArchive() function. You can then use this object type with functions from Hollywood's object library such as GetAttribute(), SetObjectData(), GetObjectData(), etc.

In particular, Hollywood's GetAttribute() function may be used to query certain properties of zip archives opened using zip.OpenArchive(). The following attributes are currently supported by GetAttribute() for zip archives:

#ZIPATTRNUMENTRIES:
Returns the number of entries in the zip archive.

Inputs
none

Results
type
internal zip archive type for use with Hollywood's object library
Example
zip.OpenArchive(1, "test.zip")
ZIP_ARCHIVE = zip.GetObjectType()
numentries = GetAttribute(ZIP_ARCHIVE, 1, #ZIPATTRNUMENTRIES)
The code above opens test.zip and queries the number of entries in the archive via GetAttribute().

Show TOC