Skip to main content
DiskVFS 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

A folder changed in the last 2 seconds gets no version and is re-listed until it has been quiet that long.

Mount mode

read, write, exec. Use MountMode.EXEC if python3 or js should run scripts from the mount.

Snapshot behavior

A snapshot carries the mount’s files, and loading it restores them. For behavior shared with Python (filesystem layout, supported shell commands), see the Python Disk docs.

VFS.md

The VFS.md an agent reads with Disk mounted at /<path>.

Virtual Filesystem

Supported Unix Commands for VFS

Unix commands work on each path as on a local filesystem, as far as the path supports them:

Limitations of Unix Commands for VFS

Where a path differs from a local filesystem:Run man <cmd> or <cmd> --help for one command’s usage.