"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!

[727 byte] By [senore100a] at [2007-11-27 3:37:52]
# 1
It gives FilenameFilters the ability to discriminate based on what directory is being looked at...
Austin_Wa at 2007-7-12 8:41:10 > top of Java-index,Java Essentials,Java Programming...
# 2
Thanks for your reply. But how so? Examples I've seen so far don't even use this parameter at all? Could you maybe give me a few lines of pseudo-code?
senore100a at 2007-7-12 8:41:10 > top of Java-index,Java Essentials,Java Programming...