for (Iterator iterator = ignoreFiles.iterator(); iterator.hasNext(); ) {
GlobFilenameFilter pattern = (GlobFilenameFilter) iterator.next();
// We have to use a little tweak here, since GlobFilenameFilter only matches the filename, but not
// the path, so we use the complete path as the 'filename'-argument.
if (pattern.accept(file, path)) {
return true;
}
}
return false;
}