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

Function format_recent

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

Source from the content-addressed store, hash-verified

899 return items
900
901def format_recent(items: List[Tuple[float, Path, int]]) -> str:
902 lines: List[str] = []
903 for i, (mt, p, sz) in enumerate(items, start=1):
904 ts = time.strftime("%Y-%m-%d %H:%M:%S", time.localtime(mt))
905 lines.append(f"{i:>2}. {ts} {format_size(sz):>10} {p}")
906 return "\n".join(lines) if lines else ""
907
908
909# ------------------ Clean duplicates (keep newest, trash others) ------------------

Callers 2

run_recentFunction · 0.70
mainFunction · 0.70

Calls 1

format_sizeFunction · 0.70

Tested by

no test coverage detected