refactor: allow copy operation with whitelist

Signed-off-by: Sefa Eyeoglu <contact@scrumplex.net>
This commit is contained in:
Sefa Eyeoglu committed 2022-11-12 20:27:13 +01:00
1 parent ddfb449b28
commit e048bce13e
4 files changed
+47 -6

No files matched your search

+1 -1
View File
@@ -174,7 +174,7 @@ bool copy::operator()(const QString& offset)
// Function that'll do the actual copying
auto copy_file = [&](QString src_path, QString relative_dst_path) {
if (m_blacklist && m_blacklist->matches(relative_dst_path))
if (m_matcher && (m_matcher->matches(relative_dst_path) == !m_whitelist))
return;
auto dst_path = PathCombine(dst, relative_dst_path);