fetchDocumentIndices

fun fetchDocumentIndices(loader: CsafLoader = lazyLoader, channelCapacity: Int = DEFAULT_CHANNEL_CAPACITY, useChangesCsv: Boolean = false): ReceiveChannel<Pair<String, Result<String>>>

This function fetches all directory indices or changes.csv files referenced by this provider and sends them to a ReceiveChannel.

Return

A ReceiveChannel containing the fetched Results, representing index contents, changes.csv contents or fetch errors.

Parameters

loader

The instance of CsafLoader used for fetching of online resources.

channelCapacity

The capacity of the channels used to buffer parallel fetches. Defaults to DEFAULT_CHANNEL_CAPACITY.

useChangesCsv

Load changes.csv files instead of index.txt ones.