glob

Generate an input range of Paths that match the given pattern.

glob
(
PatternType
)
(
auto ref in Path p
,
PatternType pattern
,
SpanMode spanMode = SpanMode.shallow
)

Examples

assertNotEmpty(currentExePath().parent.glob("*"));
assertNotEmpty(currentExePath().parent.glob("*", SpanMode.shallow));
assertNotEmpty(currentExePath().parent.glob("*", SpanMode.breadth));
assertNotEmpty(currentExePath().parent.glob("*", SpanMode.depth));

Meta