Module path

Module path 

Source
Expand description

Path utility functions

Functionsยง

ensure_dir_exists
Ensure directory exists, creating if necessary
find_repo_root
Find the repository root by looking for common markers (.git, Cargo.toml, etc.)
is_hidden
Check if path represents a hidden file or directory (starts with .)
is_under_directory
Check if path is under a given directory
normalize_path
Normalize a path to use forward slashes (for cross-platform consistency)
path_depth
Get the depth of a path (number of components)
relative_path
Get relative path from base to target