Enums§
- Path
Security Error - Security error for path validation
Functions§
- ensure_
directory_ exists - Ensures a directory exists, creating it if necessary
- expand_
user - Expands a path that starts with ~ to the user’s home directory
- glob_
matches - Match a glob against a workspace-relative path.
*/?do NOT cross/(sosrc/*.tsmatches only direct children —**is the recursive form, matchingfind/bashsemantics); a bare pattern (e.g.*.rs) also matches the file name at any depth, giving the intuitive “all .rs files”. - is_
symlink - Check if a path is a symlink without following it
- resolve_
in_ workspace - Resolve a user-supplied path string (possibly empty, relative, or
~) into a workspace-confined absolute path. Empty input resolves to the workspace root. Used by the read-only search/glob tools to scope and confine their root. - validate_
path_ in_ workspace - Validates that a path is within the workspace root (or an extra root allowed
via
WINX_ALLOW_PATHS). Returns the canonicalized path if valid.