FileMatchesMask Method
Checks whether a particular file or directory name matches the specified mask.
Syntax
ANSI (Cross Platform) int FileMatchesMask(const char* lpszMask, const char* lpszFileName, int bCaseSensitive); Unicode (Windows) INT FileMatchesMask(LPCWSTR lpszMask, LPCWSTR lpszFileName, BOOL bCaseSensitive);
- (BOOL)fileMatchesMask:(NSString*)mask :(NSString*)fileName :(BOOL)caseSensitive;
#define MID_CBVAULT_FILEMATCHESMASK 16 CBFSSTORAGE_EXTERNAL int CBFSSTORAGE_CALL CBFSStorage_CBVault_Do(void *lpObj, int methid, int cparam, void *param[], int cbparam[], int64 *lpllVal);
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.
Error Handling (C++)
This method returns a Boolean value; after it returns, call the GetLastErrorCode() method to obtain its result code; 0 indicates success, while a non-zero error code indicates that this method encountered an error during its execution. If an error occurs, the GetLastError() method can be called to retrieve the associated error message.