private filterPassed ( string $str, array $filter ) : boolean | ||
$str | string | String representing filepath to be filtered |
$filter | array | An array of filter rules, where each rule is a string, supposing that the string starting with '~' is a regular expression. Any other string treated as an extension part of the given filepath (e.g.: file extension) |
return | boolean | Returns 'True' if the supplied string matched one of the filter rules. |