<preclass='rust fn'>pub fn glob_with(<br> pattern: &<aclass="primitive"href="https://doc.rust-lang.org/nightly/std/primitive.str.html">str</a>, <br> options: &<aclass="struct"href="../glob/struct.MatchOptions.html"title="struct glob::MatchOptions">MatchOptions</a><br>) -><aclass="enum"href="https://doc.rust-lang.org/nightly/core/result/enum.Result.html"title="enum core::result::Result">Result</a><<aclass="struct"href="../glob/struct.Paths.html"title="struct glob::Paths">Paths</a>, <aclass="struct"href="../glob/struct.PatternError.html"title="struct glob::PatternError">PatternError</a>></pre><divclass='docblock'><p>Return an iterator that produces all the Paths that match the given pattern,
which may be absolute or relative to the current working directory.</p>
<p>This may return an error if the pattern is invalid.</p>
<p>This function accepts Unix shell style patterns as described by
<code>Pattern::new(..)</code>. The options given are passed through unchanged to
<code>Pattern::matches_with(..)</code> with the exception that
<code>require_literal_separator</code> is always set to <code>true</code> regardless of the value