"File" parameter in FilenameFilter
I've been trying to figure out the significance of the "File" parameter in FilenameFilter:
publicinterface FilenameFilter{
publicboolean accept(File dir, String name)
}
I've already done some search online and looked up some examples. But still it hasn't dawned upon me.
Someone mentioned its utility had something to with recursion. But then shouldn't all the directory and file location issues be handled by the caller of the accept() method? Sorry but this question keeps bugging me.
Thanks!

