Skip to content

Finder

Directory walking helpers live in serenade-finder (#245).

Symfony Finder shaped: roots, files/directories, name globs, depth, ignore dotfiles.

Piece Role
Finder::new / in_path Search roots
files / directories Type filter
name Basename * / ? glob (OR across patterns)
min_depth / max_depth Walk depth relative to each root
ignore_dotfiles Skip basenames starting with .
follow_links Follow symlinks
collect Sorted Vec<PathBuf>
use serenade_finder::Finder;
let paths = Finder::new()
.in_path("crates")
.files()
.name("*.rs")
.ignore_dotfiles()
.collect()?;
  • Name match is basename-only (not full path globs)
  • No .gitignore / VCS exclusion
  • No content search
  • Built on walkdir