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