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

Function favoriteFolderKey

packages/app-core/src/lib/vault-layout.ts:548–550  ·  view source on GitHub ↗
(folder: NoteFolder, subpath: string)

Source from the content-addressed store, hash-verified

546 * do, so the colon discriminates the two.
547 */
548export function favoriteFolderKey(folder: NoteFolder, subpath: string): string {
549 return folderIconKey(folder, subpath)
550}
551
552export function isFavoriteFolderKey(key: string): boolean {
553 return key.includes(':')

Callers 4

SidebarFunction · 0.90
removeFavoritesForFolderFunction · 0.85

Calls 1

folderIconKeyFunction · 0.70

Tested by

no test coverage detected