Skip to main content

load_directory

Function load_directory 

Source
pub fn load_directory<P: AsRef<Path>>(dir: P) -> Result<Vec<LoadedSpec>>
Expand description

Load all .unit.spec files from a directory recursively

Returns a vector of LoadedSpec, sorted by file path. Non-.unit.spec files are skipped. Empty directories return an empty vec (not an error).