Example:
auto combined = andMasks([globMask("*.txt"), globMask("file*")]);
assert(combined.isCovered("file.txt"));
assert(!combined.isCovered("readme.txt")); // doesn't match file*Combines multiple masks with AND logic (all must match).
masks | array of masks to combine |
Example:
auto combined = andMasks([globMask("*.txt"), globMask("file*")]);
assert(combined.isCovered("file.txt"));
assert(!combined.isCovered("readme.txt")); // doesn't match file*