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
| Parameter | Type | Description |
|---|---|---|
root | DirectoryHandleLike | - |
path | string | Where to keep these files from the folder root, / separating subdirectories, so several accounts can each have a subtree. |
Returns
Promise<FolderAdapter>