MCPcopy Create free account
hub / github.com/arktypeio/arktype / contentPath

Function contentPath

ark/docs/lib/content/pageTree.ts:84–85  ·  view source on GitHub ↗
(contentDir: string, path: string)

Source from the content-addressed store, hash-verified

82
83/** a file's path under the content directory, with "/" on every platform */
84const contentPath = (contentDir: string, path: string) =>
85 relative(contentDir, path).split(sep).join("/")
86
87const readMeta = (dir: string): MetaJson | undefined => {
88 const path = join(dir, "meta.json")

Callers 3

loadPageFunction · 0.85
resolveEntriesFunction · 0.85
buildPageTreeFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected