AR Format

AR Format

Support for the AR archive format.

The AR Format package is exposed to the SDK:

from Pro.Core import *
from Pkg.AR import *

def parseArArchive(fname):
    c = createContainerFromFile(fname)
    if c.isNull():
        return
    obj = ARObject()
    if not obj.Load(c) or not obj.ParseArchive():
        return
    entry = None
    while entry := obj.NextEntry(entry):
        print("Name:", entry.name)
        # retrieves the entry data as NTContainer
        c = obj.GetEntryData(entry)