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

Function folderRoot

apps/desktop/src/main/vault.ts:1170–1173  ·  view source on GitHub ↗
(root: string, folder: NoteFolder)

Source from the content-addressed store, hash-verified

1168}
1169
1170export async function folderRoot(root: string, folder: NoteFolder): Promise<string> {
1171 if (folder === 'inbox') return await primaryNotesRoot(root)
1172 return path.join(root, folder)
1173}
1174
1175export function folderForRelativePath(rel: string): NoteFolder | null {
1176 const normalized = normalizeVaultRelativePath(rel)

Callers 15

createDatabaseFunction · 0.90
listFoldersFunction · 0.70
listNotesFunction · 0.70
createNoteFunction · 0.70
createExcalidrawFunction · 0.70
importExternalNoteFunction · 0.70
folderSubpathOfFunction · 0.70
moveBetweenFoldersFunction · 0.70
createFolderFunction · 0.70
renameFolderFunction · 0.70

Calls 1

primaryNotesRootFunction · 0.85

Tested by

no test coverage detected