Skip to main content

is_prefix

Function is_prefix 

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

Whether prefix is path itself or a directory ancestor of it.

A prefix of / matches every absolute path.