MCPcopy Create free account
hub / github.com/ZenNotes/zennotes / databaseSidecarPath

Function databaseSidecarPath

apps/desktop/src/main/vault.ts:734–737  ·  view source on GitHub ↗
(root: string, rel: string)

Source from the content-addressed store, hash-verified

732 * the co-located `<rel>.csv.base.json` so old vaults still read.
733 */
734export function databaseSidecarPath(root: string, rel: string): string {
735 const schemaRel = databaseSchemaPathFor(toPosix(rel))
736 return resolveSafe(root, schemaRel ?? `${toPosix(rel)}${DATABASE_SIDECAR_SUFFIX}`)
737}
738
739function cloneVaultSettings(settings: VaultSettings): VaultSettings {
740 return {

Callers 2

readSidecarFunction · 0.90
persistSidecarFunction · 0.90

Calls 3

databaseSchemaPathForFunction · 0.90
toPosixFunction · 0.70
resolveSafeFunction · 0.70

Tested by

no test coverage detected