pub fn check_resource_name(name: &str) -> Result<(), String>Expand description
Check a resource name. Every segment uses ASCII letters, digits, -,
_ and ., and does not start with .; absolute paths, empty
segments, .. and backslashes are rejected. The error explains why.