LEAD-451 listFiles is wrongly implemented previously. re-implement to closely match java.io.File.listFiles() start with test case.