MCPcopy Create free account
hub / github.com/PawanOsman/OpenCursor / getFileTree

Function getFileTree

src/context/workspaceContext.ts:52–57  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

50}
51
52export async function getFileTree(): Promise<string> {
53 const root = getWorkspaceRoot();
54 const lines: string[] = [];
55 await buildTree(root, "", 0, lines, { n: 200 });
56 return lines.join("\n");
57}
58
59export function getOpenFiles(): string[] {
60 const root = getWorkspaceRoot();

Callers 1

buildContextBlockFunction · 0.85

Calls 2

getWorkspaceRootFunction · 0.90
buildTreeFunction · 0.85

Tested by

no test coverage detected