--- Listing ---
(meta NoteMeta, path string)
| 655 | // --- Listing --- |
| 656 | |
| 657 | func 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 | |
| 667 | func (v *Vault) hydratePersistedNoteMetaCache() { |
| 668 | v.metaCacheMu.Lock() |
no test coverage detected