Function preserves_schema::compiler::load_schema_or_bundle

source ·
pub fn load_schema_or_bundle(
    bundle: &mut Map<ModulePath, Schema>,
    i: &PathBuf
) -> Result<bool>
Expand description

Loads a Schema or Bundle from path i into bundle.

If i holds a Schema, then the file stem of i is used as the module name when placing the schema in bundle.

Returns true if it was a schema, false if it was a bundle.