Skip to main content

path_matches_prefix

Function path_matches_prefix 

Source
pub fn path_matches_prefix(path: &str, prefix: &str) -> bool
Expand description

Test whether path equals prefix or sits beneath it at a . segment boundary. A bare starts_with is wrong here: prefix agents.aaa must not match agents.aaalore.workspace.