MCPcopy Index your code
hub / github.com/tinyplex/tinybase / getDocShotRefs

Function getDocShotRefs

site/shots.ts:33–43  ·  view source on GitHub ↗
(outDir: string)

Source from the content-addressed store, hash-verified

31 });
32
33const getDocShotRefs = (outDir: string): string[] => {
34 const shotDir = join(outDir, DOC_SHOT_DIR);
35 if (!existsSync(shotDir)) {
36 return [];
37 }
38 const refs: string[] = [];
39 forEachDeepFile(shotDir, (filePath) => {
40 refs.push(relative(shotDir, filePath).replaceAll('\\', '/'));
41 });
42 return refs.sort((a, b) => b.length - a.length);
43};
44
45const syncPublishedDocShots = (outDir: string): void => {
46 const shotDir = join(outDir, DOC_SHOT_DIR);

Callers 1

rewritePublishedDocShotsFunction · 0.85

Calls 2

forEachDeepFileFunction · 0.70
joinFunction · 0.50

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…