MCPcopy Create free account
hub / github.com/anus-dev/ANUS / isTruncated

Function isTruncated

packages/core/src/utils/getFolderStructure.ts:326–336  ·  view source on GitHub ↗
(node: FullFolderInfo)

Source from the content-addressed store, hash-verified

324
325 // 3. Build the final output string
326 function isTruncated(node: FullFolderInfo): boolean {
327 if (node.hasMoreFiles || node.hasMoreSubfolders || node.isIgnored) {
328 return true;
329 }
330 for (const sub of node.subFolders) {
331 if (isTruncated(sub)) {
332 return true;
333 }
334 }
335 return false;
336 }
337
338 let summary = `Showing up to ${mergedOptions.maxItems} items (files + folders).`;
339

Callers 1

getFolderStructureFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected