andMasks

fnMask andMasks(Mask[] masks) @safe

Combines multiple masks with AND logic (all must match).

Parameters

masksarray of masks to combine

Returns

A new Mask that matches only if all input masks match.

Example:

auto combined = andMasks([globMask("*.txt"), globMask("file*")]);
assert(combined.isCovered("file.txt"));
assert(!combined.isCovered("readme.txt")); // doesn't match file*