# Function: createFolderAdapter()

```ts
function createFolderAdapter(
   root, 
   path, 
   options?
): Promise<FolderAdapter>;
```

Defined in: [packages/storage/src/folder/adapter.ts:152](https://github.com/leifriksheim/minca/blob/main/storage/src/folder/adapter.ts#L152)

Opens a storage adapter backed by a directory on the user's disk. Versions
are held in memory too, or a query would read one file per record; so are
the entries' keys, or every listing would read the whole directory. Their
values are not: they include file chunks, and the disk's cache holds them.

## Parameters

| Parameter | Type | Description |
| ------ | ------ | ------ |
| `root` | [`DirectoryHandleLike`](https://minca.dev/api/storage-folder/interfaces/DirectoryHandleLike.md) | - |
| `path` | `string` | Where to keep these files from the folder root, `/` separating subdirectories, so several accounts can each have a subtree. |
| `options?` | \{ `shared?`: `boolean`; \} | - |
| `options.shared?` | `boolean` | Others write these entries as this reads them, and nothing reloads it: every read of an entry goes to the disk. |

## Returns

`Promise`\<[`FolderAdapter`](https://minca.dev/api/storage-folder/interfaces/FolderAdapter.md)\>
