coder::tree
Recursive directory snapshot bounded by `max_depth` and a `per_folder_limit`. Folders that hit the limit are flagged `truncated` and the caller is pointed at coder::list-folder for pagination.
- max_depthinteger· uint32min 0
Maximum depth to descend; the root node is depth 0.
- pathstring
Base folder relative to `base_path`. Defaults to `.`.
- per_folder_limitinteger· uint32min 0
Maximum children listed per folder. When more exist, the folder is flagged `truncated` and callers should switch to `coder::list-folder`.
- rootobjectrequired
- childrenunknown[]
- kindstringrequiredenum: file, dir, symlink, other
- mtimeinteger· int64required
- namestringrequired
- non_accessiblebooleanrequired
- pathstringrequired
- sizeinteger· uint64requiredmin 0
- truncatedany of
Set on directories whose `children` was capped at `per_folder_limit` or whose subtree was cut off by `max_depth`.
any of (2)variant 1- hintstringrequired
- reasonstringrequired
Reason this folder was truncated: hit `per_folder_limit` or `max_depth`.
- showninteger· uint32requiredmin 0
Number of children actually returned.
- totalinteger· uint32min 0
Total number of children in the folder (only populated when `reason == "per_folder_limit"`; for depth truncation we don't peek into the folder).
variant 2valuenull