Module path

Module path 

Source
Expand description

Path normalization utilities.

Functionsยง

contains_glob_chars
Check if a path contains glob characters.
expand_home
Expand ~ to the home directory.
get_parent_path
Get the parent directory path, handling root correctly.
is_symlink
Check if a path is a symlink.
is_symlink_outside_boundary
Check if a resolved symlink path is outside the original path boundary. This prevents escaping the sandbox via symlinks.
join_paths
Join paths, handling absolute paths correctly.
normalize_case_for_comparison
Normalize case for path comparison on case-insensitive filesystems.
normalize_path_for_sandbox
Normalize a path for sandbox use.
remove_trailing_glob_suffix
Remove trailing glob suffix (e.g., /** or /*)
resolve_symlink
Resolve a symlink to its target, if it is one.