Skip to main content

Module loader

Module loader 

Source
Expand description

Filesystem walker — loads all .md files from mem directories into entities.

Thin wrapper over entity::source::EntitySource: the source hands back (relative_path, content) pairs, and this module layers on the entity-level concerns (empty-file skipping, per-file schema resolution, parse). The source abstraction is deliberately narrow so new backing stores (directory, zip archive, …) can be added without touching this file.

Structs§

LoadResult
Result of loading a mem directory.

Enums§

LoadError

Functions§

load_mem
Load all entities from a mem directory.
load_mem_archive
Load all entities from a sealed .mem mem archive.
parse_entries
Parse a pre-collected set of source entries against the mem’s schema. Public so the workspace-side git-tree adapter can reuse the same parse loop without re-implementing empty-file skipping or the per-entity schema lookup.