diff --git a/freva/src/drs/ingest.rs b/freva/src/drs/ingest.rs index a9fcc384e5daf84079d4c17d119c6ce79554a073..3c1f27039c58926e0d2d2fef6695249467380baf 100644 --- a/freva/src/drs/ingest.rs +++ b/freva/src/drs/ingest.rs @@ -100,6 +100,12 @@ pub async fn ingest<P: AsRef<Path>>( }) } +/// Ingests a single structure from the DRS config. +/// +/// This handles crawling the structure's `root_dir` and ingesting any files it finds there are valid for the structure. +/// This inserts the files it finds into both files and latest collection within solr. +/// +/// Invalid files, whatever the reason they're invalid, will be skipped. async fn ingest_structure( solr: Solr, structure: Structure,