pub fn list_dir(
root: &Path,
dir_rel: &str,
max_entries: usize,
) -> Result<(Vec<ExplorerEntry>, bool), ExplorerError>Expand description
List directory entries under root/dir_rel, returning at most max_entries.
Returns (entries, truncated) where truncated is true when the listing
was cut short. Entries are sorted directories-first, then
case-insensitively by name. Symlinks that escape the workspace root are
silently omitted.