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. See the cache.

Mount mode

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

Snapshot behavior

DiskVFS.toState() captures the file tree as bytes. Loading a snapshot back doesn’t re-create the directory; pass a config file with a fresh root if the original location changed. For behavior shared with Python (filesystem layout, supported shell commands), see the Python Disk docs.