moonzero · control plane v0.15.0 · 49 packages · 4 targets · Apache-2.0 docs / edge / mount GitHub

07 / EDGE

mount

Read every regular file under a directory into the set files serves, keyed by its path relative to that directory: one call at start-up turns a build output, a fixture tree or a directory of assets into a mount.

async fn load(dir : String) -> @handler.Files

itemRead every regular file under dir into the set @handler.Files serves, keyed by its path relative to dir with a leading slash. Subdirectories are walked breadth-first, so a deep tree costs queue space rather than stack.