minca
ApiCoreFunctions

Function: reconcileFolder()

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

Defined in: packages/core/src/storage/folder-reconcile.ts:35

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

ParameterTypeDescription
storageStorageProvider-
adapterFolderAdapter-
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>

On this page