type = xad.GetObjectType()
GetAttribute()
, SetObjectData()
, GetObjectData()
, etc.
In particular, Hollywood's GetAttribute()
function may be used to query certain properties of
xad archives opened using xad.OpenArchive(). The following attributes are currently supported
by GetAttribute()
for xad archives:
#XADATTRNUMENTRIES:
#XADATTRTYPE:
xad.OpenArchive(1, "test.rar") XAD_ARCHIVE = xad.GetObjectType() numentries = GetAttribute(XAD_ARCHIVE, 1, #XADATTRNUMENTRIES) type$ = GetAttribute(XAD_ARCHIVE, 1, #XADATTRTYPE)The code above opens
test.rar
and queries the number of entries
in the archive and its type via GetAttribute()
.