MCPcopy Create free account
hub / github.com/abbeycode/UnrarKit / ExclCheck

Method ExclCheck

Libraries/unrar/cmdfilter.cpp:4–13  ·  view source on GitHub ↗

Return 'true' if we need to exclude the file from processing as result of -x switch. If CheckInclList is true, we also check the file against the include list created with -n switch.

Source from the content-addressed store, hash-verified

2// of -x switch. If CheckInclList is true, we also check the file against
3// the include list created with -n switch.
4bool CommandData::ExclCheck(const wchar *CheckName,bool Dir,bool CheckFullPath,bool CheckInclList)
5{
6 if (CheckArgs(&ExclArgs,Dir,CheckName,CheckFullPath,MATCH_WILDSUBPATH))
7 return true;
8 if (!CheckInclList || InclArgs.ItemsCount()==0)
9 return false;
10 if (CheckArgs(&InclArgs,Dir,CheckName,CheckFullPath,MATCH_WILDSUBPATH))
11 return false;
12 return true;
13}
14
15
16bool CommandData::CheckArgs(StringList *Args,bool Dir,const wchar *CheckName,bool CheckFullPath,int MatchMode)

Callers 2

FindProcMethod · 0.80
ScanErrorMethod · 0.80

Calls 1

ItemsCountMethod · 0.80

Tested by

no test coverage detected