selectProvider

fnArchiveProvider selectProvider(ArchiveFormat fmt, string preferredVendor = null)

Get the best provider for a format.

Selects the provider with the highest priority. If preferredVendor is specified, the provider with that full name is returned instead.

Parameters

fmtThe archive format.
preferredVendorOptional full provider name (e.g., "ddn-zip").

Returns

The selected provider.

Throws

ArchiveError if no provider is registered for the format,

or the preferred vendor is not found.