> ## 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.

# Disk

> Make a directory on your host available as workspace files.

Disk mounts a host directory at a workspace path. Available in Python and
Node; for browser storage, use [OPFS](https://docs.mirage.strukto.ai/home/setup/opfs.md).

## Configuration

Replace `root` with the directory you want to access:

```yaml theme={null}
mounts:
  /data:
    vfs: disk
    mode: read
    config:
      root: /path/to/files
```

`ls /data` lists that directory. Set `mode: write` to allow changes to its
files through Mirage. Add `capacity: 1GB` under `config` to cap the bytes the
directory holds; see [capacity](https://docs.mirage.strukto.ai/home/setup/vfs.md#mount-capacity).

A second disk mount whose `root` resolves to a folder already mounted is
refused; a folder inside one is fine.

## SDK guides

* [Python Disk VFS](https://docs.mirage.strukto.ai/python/vfs/disk.md)
* [TypeScript Disk setup](https://docs.mirage.strukto.ai/typescript/setup/disk.md)


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.