pub fn get_data_index(
datasets_path: impl AsRef<Path>,
) -> Result<DataIndex, Error>Expand description
Returns the an index of locally available datasets.
§Arguments
datasets_path: The path to the directory that we read the packages from.
§Returns
A DataIndex if we could retrieve it, or an Error if we failed.
§Errors
This function may error if we failed to read the local data folder or if the data folder was incorrectly laid out.