minca
ApiCoreFunctions

Function: createFolderAdapter()

function createFolderAdapter(root, path): Promise<FolderAdapter>;

Defined in: packages/core/src/storage/folder-adapter.ts:157

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.

Parameters

ParameterTypeDescription
rootDirectoryHandleLike-
pathstringWhere to keep these files from the folder root, / separating subdirectories, so several accounts can each have a subtree.

Returns

Promise<FolderAdapter>

On this page