Function add_headers_recursively

Source
pub fn add_headers_recursively(
    root: &Path,
    path_predicate: impl Fn(&Path) -> bool,
    header: Header<impl HeaderChecker>,
) -> Result<Vec<PathBuf>, AddHeadersRecursivelyError>
Expand description

Add the provided header to any file in root that matches path_predicate and that doesn’t already have a header as determined by checker.

Returns a list of paths that had headers added.