I want to collect a list of all files under a directory, in particular including subdirectories. I like not doing things myself, so I\'m using FileUtils.listF
FileUtils.listF
Have you tried simply:
File rootFolder = new File(...); File[] folders = rootFolder.listFiles((FileFilter) FileFilterUtils.directoryFileFilter());
It seems to work for me. You will need recursion, of course.
Hope it helps.