pub fn expand_globs(
root: &Path,
patterns: impl IntoIterator<Item = impl AsRef<str>>,
) -> Result<Vec<PathBuf>>Expand description
Expand globs with a root path.
A trailing recursive component, like src/**, only matches subdirectories. Replace it with its
parent so directory-aware consumers cover every descendant without enumerating the tree.