MCPcopy Create free account
hub / github.com/blacksmithgu/datacore / pathkey

Method pathkey

src/api/script-cache.ts:126–129  ·  view source on GitHub ↗

Normalize a path or link to a textual path.

(path: string | Link)

Source from the content-addressed store, hash-verified

124
125 /** Normalize a path or link to a textual path. */
126 private pathkey(path: string | Link): string {
127 if (path instanceof Link) return path.obsidianLink();
128 else return path;
129 }
130
131 /** Attempts to resolve the source to load given a path or link to a markdown section. */
132 private async resolveSource(

Callers 1

loadMethod · 0.95

Calls 1

obsidianLinkMethod · 0.80

Tested by

no test coverage detected