Skip to main content

pathlib_rglob_contains

Function pathlib_rglob_contains 

Source
pub fn pathlib_rglob_contains(
    dir: &Path,
    infix: &str,
    suffix: &str,
) -> Vec<PathBuf>
Expand description

sorted(Path(dir).rglob(f"*{infix}*{suffix}")) — every depth, dotfiles and hidden directories included, filename must contain infix and end with suffix.