Skip to main content

load_dir

Function load_dir 

Source
pub fn load_dir(dir: &Path) -> Result<Vec<ModelManifest>>
Expand description

Load every *.toml manifest in a directory (typically models/).

A missing directory is an error that NAMES the directory. The bare i/o error (“The system cannot find the path specified”) is what a crates.io user got when models/ did not exist relative to their working directory, and it reads like missing weights rather than a missing manifest folder.