Skip to Content
Anuma SDKReactInternalFunctionsensureDefaultFoldersOp

ensureDefaultFoldersOp

ensureDefaultFoldersOp(ctx: VaultFolderOperationsContext): Promise<Map<string, string>>

Defined in: src/lib/db/vaultFolders/defaults.ts:20 

Ensure all default system folders exist. Idempotent — skips folders that already exist. Uses a per-database promise lock so concurrent callers share a single in-flight operation. Returns a map of ALL folder names (system + user-created) to their IDs.

Parameters

ParameterType

ctx

VaultFolderOperationsContext

Returns

Promise<Map<string, string>>

Last updated on