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

Function validCachedNoteMeta

apps/server/internal/vault/vault.go:657–665  ·  view source on GitHub ↗

--- Listing ---

(meta NoteMeta, path string)

Source from the content-addressed store, hash-verified

655// --- Listing ---
656
657func validCachedNoteMeta(meta NoteMeta, path string) bool {
658 if meta.Path != path || meta.Title == "" || !IsValidFolder(meta.Folder) {
659 return false
660 }
661 if meta.Tags == nil || meta.Wikilinks == nil {
662 return false
663 }
664 return true
665}
666
667func (v *Vault) hydratePersistedNoteMetaCache() {
668 v.metaCacheMu.Lock()

Callers 1

Calls 1

IsValidFolderFunction · 0.85

Tested by

no test coverage detected