private void collectAllKnownFiles(int rootSize, TrieParser pathCache, File[] children) { int i = children.length; StringBuilder builder = new StringBuilder(); // System.out.println("collect from "+root+" "+i); while (--i>=0) { File child = children[i]; if ((!child.isHidden()) && child.canRead()) { if (child.isDirectory()) { collectAllKnownFiles(rootSize, pathCache, child.listFiles()); } else { setupUnseenFile(pathCache, child.toString(), rootSize, data.fileSystem, builder); } } } }