# Function: directoryStores()

```ts
function directoryStores(directory, options?): StoreFactory;
```

Defined in: [packages/storage/src/folder/stores.ts:12](https://github.com/leifriksheim/minca/blob/main/storage/src/folder/stores.ts#L12)

Stores in a directory on this device, one file per entry and per version.
A data folder others share is [folderStores](https://minca.dev/api/storage-folder/functions/folderStores.md).

## Parameters

| Parameter | Type | Description |
| ------ | ------ | ------ |
| `directory` | [`DirectoryHandleLike`](https://minca.dev/api/storage-folder/interfaces/DirectoryHandleLike.md) | - |
| `options?` | \{ `localKey?`: `CryptoKey` \| `null`; `shared?`: `boolean`; \} | - |
| `options.localKey?` | `CryptoKey` \| `null` | Seals the registry. Without it nothing is sealed. |
| `options.shared?` | `boolean` | Others write these stores too, and nothing reloads them: read from the disk each time. |

## Returns

[`StoreFactory`](https://minca.dev/api/core/type-aliases/StoreFactory.md)
