type = zip.GetObjectType()
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:
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().