Skip to main content

safe_prompt_cache_shard_path

Function safe_prompt_cache_shard_path 

Source
pub fn safe_prompt_cache_shard_path(
    directory: &Path,
    relative: &str,
) -> Result<PathBuf, PromptCachePersistenceError>
Expand description

Resolves a manifest shard path while rejecting traversal and symlink escapes.