diff options
author | Kornel <kornel@geekhood.net> | 2021-12-18 14:01:24 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-12-18 14:01:24 +0300 |
commit | 52eeaf1ad614fcd03b48423009182e3e3d1ff694 (patch) | |
tree | bdb7b203c923af669be1a7efe88ffaead9ec487a /CPP/Common/Wildcard.h | |
parent | 585698650f7257d2cefa6a3a2a49d5bbe84fd9b2 (diff) | |
parent | ccbf6ad3c1dffaffd43890e62235b3a860bc9081 (diff) |
Merge pull request #4 from FnControlOption/2106
Diffstat (limited to 'CPP/Common/Wildcard.h')
-rw-r--r-- | CPP/Common/Wildcard.h | 22 |
1 files changed, 20 insertions, 2 deletions
diff --git a/CPP/Common/Wildcard.h b/CPP/Common/Wildcard.h index 32b1521f..fb0f1fed 100644 --- a/CPP/Common/Wildcard.h +++ b/CPP/Common/Wildcard.h @@ -59,8 +59,18 @@ class CCensorNode MY_UNCOPYABLE bool CheckPathCurrent(bool include, const UStringVector &pathParts, bool isFile) const; void AddItemSimple(bool include, CItem &item); public: - CCensorNode(): Parent(NULL) { }; - CCensorNode(const UString &name, CCensorNode *parent): Parent(parent), Name(name) { }; + // bool ExcludeDirItems; + + CCensorNode(): + Parent(NULL) + // , ExcludeDirItems(false) + {}; + + CCensorNode(const UString &name, CCensorNode *parent): + Parent(parent) + // , ExcludeDirItems(false) + , Name(name) + {} UString Name; // WIN32 doesn't support wildcards in file names CObjectVector<CCensorNode> SubNodes; @@ -151,6 +161,14 @@ class CCensor MY_UNCOPYABLE public: CObjectVector<CPair> Pairs; + bool ExcludeDirItems; + bool ExcludeFileItems; + + CCensor(): + ExcludeDirItems(false), + ExcludeFileItems(false) + {} + CObjectVector<NWildcard::CCensorPath> CensorPaths; bool AllAreRelative() const |