<div dir="ltr">Is there any plan to add recursive globs to dirEntries?<div><br></div><div>use case:</div><div><br></div><div>auto entries=dirEntry("foo/**/bar/*suffix/*.{d,di}", spanMode, followSymlink)</div><div>
will match for example:</div><div><div>foo/a/b/bar/somethingsuffix/file.d</div></div><div><div><br></div><div>Note, ** will match any number (>=0) of directories, whereas a single * is non-recursive</div></div><div><br>
</div><div>(as found in some good shells and IIRC, later versions of python, etc).</div><div><br></div><div>note, in this case, spanMode could only be breadth or depth, not shallow as the glob fully specifies depth.</div>
<div><br></div><div>I have partially working code (it doesn't handle {} but does handle * and **), however it's not the most efficient, so was wondering.</div></div>