A few weeks ago I used this thread Grabbing specific files in a folder to grab a list of mkv files from a directory provided by a third party. However, the structure of the directory has now changed, so I need to recursively cycle through all of the folders to find the .mkv files.
I have heard that the Apache commons library has the FileUtils.listFiles() method, which seems promising. As far as I know that returns a collection by default though, and collections do not guarantee that order is preserved (since these are .mkv video files, order is very important). Do any of you have experience with this sort of thing?