Skip to main content

validate_file_path

Function validate_file_path 

Source
pub fn validate_file_path(path: &str) -> Result<(), Status>
Expand description

Validate a client-supplied file path.

Rejects empty paths, absolute paths, null bytes, and .. traversal components. All gRPC handlers that accept a file path from the client should call this before any further processing.