private boolean register(File f) { boolean rc = false; if (f.isDirectory()) { File file[] = f.listFiles(this); for (int i = 0; i < file.length; i++) { if (register(file[i])) rc = true; } } else if (dirMap.get(f) == null) { dirMap.put(f, new QEntry()); rc = true; } return rc; }
public boolean accept(File f) { return f.canRead() && (f.getName().endsWith(".xml") || (recursive && f.isDirectory() && !"lib".equalsIgnoreCase(f.getName()))); }