Skip to main content

is_normalized_path

Function is_normalized_path 

Source
pub fn is_normalized_path(path: &[u8]) -> bool
Expand description

Return true if path already matches this crate’s normalized spelling.

This checks byte spelling only. It does not mean that path is a valid file-like resource, safe host path, URI, display string, or archive path. Empty paths, trailing separators, NUL bytes, invalid UTF-8, dot segments, and already-mangled host/URI-looking strings such as c:/foo or http:/foo/bar may all be normalized according to this predicate.