Module paths

Module paths 

Source
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.toml in 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.