# Function: reconcileFolder()

```ts
function reconcileFolder(
   storage, 
   adapter, 
   accept?
): Promise<FolderReconciliation>;
```

Defined in: [packages/core/src/storage/folder-reconcile.ts:35](https://github.com/leifriksheim/minca/blob/main/core/src/storage/folder-reconcile.ts#L35)

Re-reads the folder and brings the entries back in line with it. With
nothing new on disk it is two listings and no writes.

## Parameters

| Parameter | Type | Description |
| ------ | ------ | ------ |
| `storage` | [`StorageProvider`](https://minca.dev/api/storage/interfaces/StorageProvider.md) | - |
| `adapter` | [`FolderAdapter`](https://minca.dev/api/core/interfaces/FolderAdapter.md) | - |
| `accept?` | (`version`) => `Promise`\<`boolean`\> | Whether a version found on disk may be placed: anyone who can write the folder can drop a file in it. One refused now is asked about again. |

## Returns

`Promise`\<[`FolderReconciliation`](https://minca.dev/api/core/interfaces/FolderReconciliation.md)\>
