Skip to main content

instance_files

Function instance_files 

Source
pub fn instance_files(path: impl AsRef<Path>) -> Vec<PathBuf>
Expand description

Every CIM input under path, sorted so that a load is reproducible.

A plain file is returned as itself whatever its name; a directory is walked recursively and the files that look like CIM inputs are kept — .xml, and .zip when the zip feature is on, since without it an archive can only produce an error.

Exposed because every program that touches a model set needs it and the answer is not quite obvious: models arrive as directories, the directories nest, and the order files are read in has to be fixed for a load to be reproducible even though merging makes it otherwise immaterial.