Function brane_shr::utilities::create_data_index_from
source · pub fn create_data_index_from(path: impl AsRef<Path>) -> DataIndex
Expand description
Collects all data index files in the given folder as a single DataIndex.
Note that this function is mostly for testing purposes. Typically, using functions directly on DataIndex
provides a more canonical experience (mostly relating to error handling).
§Arguments
path
: The path to load the data in.
§Returns
A DataIndex
with a collection of all data files in the given folder.
§Panics
This function may panic if any of the steps fail.