pub fn best_matching_watch_entry<'a>(
path: &Path,
entries: &'a [WatchPathEntry],
) -> Option<&'a WatchPathEntry>Expand description
Find the most specific configured watch entry that contains path.
Matching is path-aware rather than string-prefix-based so sibling paths like
/home/user/Pictures and /home/user/Pictures-backup are treated correctly.