mirror of
https://github.com/beefytech/Beef.git
synced 2025-06-10 12:32:20 +02:00
Add willdcard check in BfpFindFileData_CheckFilter
This commit is contained in:
parent
95bd231444
commit
debcf7eb6c
12 changed files with 81 additions and 16 deletions
|
@ -22,6 +22,7 @@
|
|||
#include "../../util/CritSect.h"
|
||||
#include "../../util/Dictionary.h"
|
||||
#include "../../util/Hash.h"
|
||||
#include "../../third_party/putty/wildcard.h"
|
||||
#ifdef BFP_HAS_EXECINFO
|
||||
#include <execinfo.h>
|
||||
#endif
|
||||
|
@ -2378,9 +2379,10 @@ static bool BfpFindFileData_CheckFilter(BfpFindFileData* findData)
|
|||
{
|
||||
if ((findData->mFlags & BfpFindFileFlag_Files) == 0)
|
||||
return false;
|
||||
}
|
||||
}
|
||||
|
||||
//TODO: Check actual wildcards.
|
||||
if (!wc_match(findData->mWildcard.c_str(), findData->mDirEnt->d_name))
|
||||
return false;
|
||||
|
||||
return true;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue