Skip to main content

model_dir

Function model_dir 

Source
pub fn model_dir(name: &str, env_var: &str, marker: &str) -> Option<PathBuf>
Expand description

Resolve a model sub-directory. An explicit env_var wins (if it points at a dir containing marker); otherwise the first <root>/<name> that contains marker. marker is a file that must exist so we don’t return an empty/partial dir.