Skip to content

ArchiveImporter

ClassAssetInventoryAssetInventory.Editor
public sealed class ArchiveImporter : AssetImporter

Indexes supported archive files and nested archives as Asset Inventory package records.

public Task Run(FolderSpec spec)

Scans the configured source folder for supported archives and creates or refreshes their package records.

Parameters

NameType
specAssetInventory.FolderSpec

Returns

System.Threading.Tasks.Task

public Task IndexDetails(Asset asset)

Extracts and indexes the contents of the supplied archive package, updating its files and completion state.

Parameters

NameType
assetAssetInventory.Asset

Returns

System.Threading.Tasks.Task

public Task ProcessSubArchives(Asset asset, List<AssetFile> subArchives)

Creates child package records for supported archives discovered inside the indexed parent archive.

Parameters

NameType
assetAssetInventory.Asset
subArchivesSystem.Collections.Generic.List{AssetInventory.AssetFile}

Returns

System.Threading.Tasks.Task

public ArchiveImporter()