pub fn validate_file_path_in_project(
path: &Path,
project_root: &Path,
) -> PatternsResult<PathBuf>Expand description
Validate a file path ensuring it stays within a project root.
This is stricter than validate_file_path - it ensures the resolved
path is a descendant of the project root directory.
§Arguments
path- The path to validateproject_root- The project root directory to stay within
§Returns
The canonicalized path if valid and within project root.
§Errors
PatternsError::FileNotFoundif the file doesn’t existPatternsError::PathTraversalif path escapes project root