Skip to main content

paths_match

Function paths_match 

Source
pub fn paths_match(a: &str, b: &str) -> bool
Expand description

Whether two paths recorded relative to different roots name the same file: equal, or one is a /-boundary suffix of the other. Many-to-one by design: a bare Makefile matches any path ending in /Makefile.