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

Function file_value

Scripts/Developer Base/Tree Explorer.py:463–467  ·  view source on GitHub ↗
(p: Path)

Source from the content-addressed store, hash-verified

461 only: List[str],
462) -> Dict[str, JsonNode]:
463 def file_value(p: Path) -> JsonNode:
464 if show_size:
465 st = safe_lstat(p)
466 return {"type": "file", "size": int(st.st_size) if st else 0}
467 return "file"
468
469 def _walk(cur: Path, depth: int) -> Dict[str, JsonNode]:
470 if max_depth != -1 and depth > max_depth:

Callers 2

_walkFunction · 0.70
build_jsonFunction · 0.70

Calls 1

safe_lstatFunction · 0.70

Tested by

no test coverage detected