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

Function systemFolderForTopSegment

packages/app-core/src/lib/vault-layout.ts:1217–1220  ·  view source on GitHub ↗
(top: string)

Source from the content-addressed store, hash-verified

1215// case (e.g. `Inbox/…`). Comparing case-sensitively dropped those assets to
1216// `null`, so a capitalized `Inbox/` showed its notes but hid its images/PDFs. (#186)
1217function systemFolderForTopSegment(top: string): NoteFolder | null {
1218 const lower = top.toLowerCase()
1219 return SYSTEM_FOLDERS.has(lower as NoteFolder) ? (lower as NoteFolder) : null
1220}
1221
1222export function folderForVaultRelativePath(
1223 relPath: string,

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected