FileMatchesMask Method
Checks whether a particular file or directory name matches the specified mask.
Syntax
public boolean fileMatchesMask(String mask, String fileName, boolean caseSensitive);
Remarks
This method checks whether the file or directory name specified by FileName matches Mask; if it does, this method returns true. The CaseSensitive parameter controls whether a case-sensitive match should be performed.