ArchiveImporter
public sealed class ArchiveImporter : AssetImporterIndexes supported archive files and nested archives as Asset Inventory package records.
Methods
Section titled “Methods”
Run(FolderSpec)
Section titled “Run(FolderSpec)”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
IndexDetails(Asset)
Section titled “IndexDetails(Asset)”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
ProcessSubArchives(Asset, List)
Section titled “ProcessSubArchives(Asset, List)”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
Constructors
Section titled “Constructors”
ArchiveImporter()
Section titled “ArchiveImporter()”public ArchiveImporter()