filter method
Implementation
Iterable<String> filter(Iterable<String> pathList) {
final List<Glob> includeList = _loadList('include', true);
final List<Glob> excludeList = _loadList('exclude');
Iterable<String> tmp = pathList.where((String element) {
for (final Glob glob in includeList) {
if (glob.matches(element)) {
return true;
}
}
return false;
});
tmp = tmp.where((String element) {
for (final Glob glob in excludeList) {
if (glob.matches(element)) {
return false;
}
}
return true;
});
return tmp.toList();
}