The MatchesMask method checks whether the file name matches the specified file mask.
MatchesMask(file, mask)
Required. String specifying the name of the file the match should be performed on.
Required. String specifying the file mask the match should be performed against.
If the file name matches the specified mask the return value is true. Otherwise the return value is false.