This content has been marked as final. Show 4 replies
bsampieri wrote:Google hints that DirFilter is some sort of FileFilter written by IBM that does filtering based on extensions.
what is DirFilter? Is that your own thing? How did you implement it? You can't tell a file from a directory by it's name, you should check if the file is a directory.... like with File.isDirectory()
I would encourage you to get more familiar with the API Javadocs. At a guess you are working with code that you inheirited or otherwise found somewhere but don't know exactly what it does. FileFilters can be useful but you don't need one to get a list of files and a quick check of the API would have shown you that.
Java 6 API http://java.sun.com/javase/6/docs/api/