MCPcopy Create free account
hub / github.com/dedsec1121fk/DedSec / format_top_list

Function format_top_list

Scripts/Developer Base/Tree Explorer.py:572–576  ·  view source on GitHub ↗
(items: List[Tuple[int, Path]])

Source from the content-addressed store, hash-verified

570 return results[: max(0, top_n)]
571
572def format_top_list(items: List[Tuple[int, Path]]) -> str:
573 lines = []
574 for i, (sz, p) in enumerate(items, start=1):
575 lines.append(f"{i:>2}. {format_size(sz):>10} {p}")
576 return "\n".join(lines) if lines else ""
577
578
579# ------------------ Summary ------------------

Callers 3

run_customFunction · 0.70
run_topFunction · 0.70
mainFunction · 0.70

Calls 1

format_sizeFunction · 0.70

Tested by

no test coverage detected