negateMask

fnMask negateMask(Mask inner) @safe

Creates a negation mask using UFCS-friendly syntax.

Parameters

innerthe mask to negate

Returns

A new Mask that inverts the inner mask's result.

Example:

auto notBak = negateMask(globMask("*.bak"));
assert(notBak.isCovered("file.txt"));
assert(!notBak.isCovered("file.bak"));