(p: Path)
| 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: |
no test coverage detected