This method of the WildcardExpression Class determines if a file name is valid.
public boolean accept(java.io.File dir, String name);
Returns true if name matches a real path; otherwise, returns false.
dir | The directory that contains the file. |
name | The name of the file. |