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

Function primaryNotesAtRoot

apps/web/src/bridge/http-bridge.ts:764–770  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

762}
763
764async function primaryNotesAtRoot(): Promise<boolean> {
765 try {
766 return (await getVaultSettings()).primaryNotesLocation === 'root'
767 } catch {
768 return false
769 }
770}
771
772/** Vault-relative directory for a (folder, subpath) — mirrors the server folderRoot. */
773function vaultRelDir(folder: NoteFolder, subpath: string, atRoot: boolean): string {

Callers 3

createDatabaseFunction · 0.85
renameDatabaseFunction · 0.85
listDatabasesFunction · 0.85

Calls 1

getVaultSettingsFunction · 0.70

Tested by

no test coverage detected