validated_repo_file_key

Function validated_repo_file_key 

Source
pub fn validated_repo_file_key(file: &Path) -> CoreResult<String>
Expand description

Normalize and validate a user-supplied path as a repository-relative file key.

ยงErrors

Returns an error when file is absolute, uses a Windows drive prefix, contains parent traversal, is empty, or cannot be represented as UTF-8.