MCPcopy
hub / github.com/callumalpass/tasknotes / getFrontmatterForPath

Method getFrontmatterForPath

src/utils/TaskManager.ts:447–454  ·  view source on GitHub ↗
(path: string)

Source from the content-addressed store, hash-verified

445 }
446
447 private getFrontmatterForPath(path: string): Record<string, unknown> | null {
448 const file = this.app.vault.getAbstractFileByPath(path);
449 if (!(file instanceof TFile)) {
450 return null;
451 }
452
453 return this.getFrontmatterFromCache(this.app.metadataCache.getFileCache(file));
454 }
455
456 private createFilterIndexEntry(
457 path: string,

Callers 1

Calls 3

getAbstractFileByPathMethod · 0.80
getFileCacheMethod · 0.80

Tested by

no test coverage detected