Module explorer

Module explorer 

Source
Expand description

File-system exploration helpers re-exported from gestura-core-explorer.

Structs§

ExplorerEntry
A single entry returned by list_dir.
ExplorerGitPathStatus
Combined staged/unstaged/untracked status for a single path.
ExplorerGitStatusResponse
Response payload for the git-status query.
ExplorerListDirResponse
Response payload for a directory listing.
ExplorerRootResponse
Response payload for the workspace root query.

Enums§

ExplorerEntryKind
Kind of a directory entry.
ExplorerError
Errors returned by the explorer helpers.
ExplorerGitChangeKind
Kind of change reported by git status --porcelain.

Functions§

canonical_root
Canonicalize the workspace root path.
ensure_safe_rel_path
Validate that rel is a safe, non-escaping relative path.
list_dir
List directory entries under root/dir_rel, returning at most max_entries.
normalize_git_change_path
Normalize a git porcelain path into a safe rel_path string.
resolve_under_root
Resolve rel under root, ensuring the result stays within the root after symlink resolution.