Skip to main content

compile_glob_set

Function compile_glob_set 

Source
pub fn compile_glob_set<I, S>(patterns: I) -> Result<GlobSet, GlobConfigError>
where I: IntoIterator<Item = S>, S: AsRef<str>,
Expand description

Compile a user-supplied glob list into a GlobSet, applying the length cap from 70-security.md § 3.4.

§Errors

GlobConfigError::TooLong when any pattern exceeds the cap. GlobConfigError::Invalid when globset rejects the syntax.