Expand description
Path utilities for normalization, validation, and discovery.
This module provides path manipulation functions with security checks for path traversal and project root discovery.
Functions§
- find_
project_ root - Finds the AGPM project root by searching for
agpm.tomlin the directory hierarchy. - get_
global_ config_ path - Returns the path to the global AGPM configuration file.
- is_
safe_ path - Checks if a path is safe and doesn’t escape the base directory.
- normalize_
path - Normalizes a path by resolving
.and..components.