# Function: directoryStores()

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

Defined in: [packages/core/src/node/stores.ts:41](https://github.com/leifriksheim/minca/blob/main/core/src/node/stores.ts#L41)

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/core/functions/folderStores.md).

## Parameters

| Parameter | Type | Description |
| ------ | ------ | ------ |
| `directory` | [`DirectoryHandleLike`](https://minca.dev/api/core/interfaces/DirectoryHandleLike.md) | - |
| `options?` | \{ `localKey?`: `CryptoKey` \| `null`; \} | - |
| `options.localKey?` | `CryptoKey` \| `null` | Seals the registry. Without it nothing is sealed. |

## Returns

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