1# @ajax/mesh-state-file
23meshd's `--state` file: one `name dir 0|1` line per loaded program in slot order, `#` comments, written whole to `<path>.tmp` and renamed.
45## Ported from
67[alpha-rust-mesh](https://github.com/rsafier/alpha-rust-mesh) (Richard Safier, MIT): crates/mesh-host/src/loader.rs (`Saved`, `read_state`, `write_state`).
89## Tests
1011`tests/state_file.c`: the state half of the Rust's `confined_and_catalog`, with the exact refusal message.
1213## Licence
1415MIT. See the repository's LICENSE.