// File.listFiles so we have to match / add them explicitly.
if ((flags & INCLUDE_DOT_AND_DOTDOT) != 0) {
if (filter.accept(current, ".")) {
matches.add(new File(current, "."));
}
if (filter.accept(current, "..")) {
matches.add(new File(current, ".."));
}
}
// Process the 'regular' directory contents
for (File file : current.listFiles(filter)) {