Skip to main content

scan

Function scan 

Source
pub fn scan(root: impl AsRef<Path>, globs: &[String]) -> Result<Vec<PathBuf>>
Expand description

Walk root — the root of an unpacked built artifact — and return every file whose name matches one of globs, sorted for deterministic output.

globs are file-name globs where * matches any run of characters (including none); each is matched against an entry’s file name, not its full path. A non-empty result means test files leaked into the artifact. Returns an error if the tree under root cannot be read.