Skip to main content

glob_walk_root

Function glob_walk_root 

Source
fn glob_walk_root(pattern: &Path) -> &Path
Expand description

Given a glob pattern, walk up the path tree until we find a component that contains no glob metacharacters (*, ?, [). The result is a concrete directory (or .) suitable as a WalkDir root.

For example:

  • target/**/*.txttarget/
  • target/release/foo-*target/release/
  • *.tar.gz.