I want to transform XML files using XSLT2, in a huge directory with a lot of levels. There are more than 1 million files, each file is 4 to 10 kB. After a while I always rec
Try this one
String[] files = dir.list(); for (String fileName : files) { File file = new File(fileName); if (file.isDirectory()) { pushDocuments(file); } else { indexFiles.index(file); } }