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

Name Type
spec AssetInventory.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

Name Type
asset AssetInventory.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

Name Type
asset AssetInventory.Asset
subArchives System.Collections.Generic.List{AssetInventory.AssetFile}

Returns

System.Threading.Tasks.Task

public ArchiveImporter()