Skip to main content

validate_name

Function validate_name 

Source
pub fn validate_name(name: &str) -> Result<()>
Expand description

Reject a name that is not a plain file name.

The name becomes a path component, so ../x or a/b would write outside the store, and a leading . would hide the file from the listing a missing baseline’s error prints. A narrow character set is easier to hold than a list of what to escape on every platform.