sui_storage::object_store::util

Function find_all_files_with_epoch_prefix

Source
pub async fn find_all_files_with_epoch_prefix(
    store: &Arc<DynObjectStore>,
    prefix: Option<&Path>,
) -> Result<Vec<Range<u64>>>
Expand description

This function will find all child directories in the input store which are of the form “epoch_num” and return a map of epoch number to the directory path