posted 18 years ago
Ok, I've got a problem, I have a function wich can check the file extension of all the files in a dir with FilenameFilter, but now I want to do a much simpler thing, but I don't know how to do it. I want to check the extension of only 1 file, but the problem I find is that the only way I know of invoking the FilenameFilter class is by making a File.list(), and as my File path is the path to a file and not to a dir, this doesn't work. Anyone knows how to do it? Thanks.