Documentation Index
Fetch the complete documentation index at: https://docs.mirage.strukto.ai/llms.txt
Use this file to discover all available pages before exploring further.
DiskResource mounts a directory on the host filesystem. Reads and writes go through node:fs against the configured root.
Node only. The browser SDK has no kernel filesystem; use OPFS instead.
Install
Config
| Field | Default | Notes |
|---|---|---|
root | required | Absolute path on the host. Reads and writes are scoped to this directory. |
Mount mode
read, write, exec. Use MountMode.EXEC if you need commands to run binaries from the mount.
Snapshot behavior
DiskResource.toState() captures the file tree as bytes. Loading a snapshot back doesn’t re-create the directory; pass an override config with a fresh root if the original location changed.
For behavior shared with Python (filesystem layout, supported shell commands), see the Python Disk docs.