Skip to main content
Disk mounts a host directory at a workspace path. Its files and folders show up as they are on disk.

Connect

workspace.yaml

Layout

  • The mount mirrors root; a path such as ../../etc/passwd never leaves it.
  • A second disk mount whose root resolves to a folder already mounted is refused; a folder inside one is fine.
  • Python and Node only. In a browser, use OPFS.

Sample runs

Set mode: write to let commands change the directory’s files. Add capacity: 1GB under config to cap the bytes it holds; see capacity.

SDK guides

Python

Every config field, the VFS.md and write support.

TypeScript

Every config field, the VFS.md and write support.