Gio.FileAttributeMatcher.prototype.subtract
function subtract(subtract: Gio.FileAttributeMatcher): Gio.FileAttributeMatcher { // Gjs wrapper for g_file_attribute_matcher_subtract() }
Subtracts all attributes of subtract from matcher and returns a matcher that supports those attributes.
Note that currently it is not possible to remove a single attribute when the matcher matches the whole namespace - or remove a namespace or attribute when the matcher matches everything. This is a limitation of the current implementation, but may be fixed in the future.
- subtract
The matcher to subtract
- Returns
A file attribute matcher matching all attributes of matcher that are not matched by subtract