Commit 702e0047 authored by Toni Asensi Esteve's avatar Toni Asensi Esteve

Synchronizer: Fix the feature of excluding folders

FIXED: [ 364838 ] Folders are ignored in the exclude list of Synchronizer
BUG: 364838

Revision: !15
parent 66c20af7
......@@ -290,7 +290,8 @@ void Synchronizer::compareDirectory(SynchronizerFileItem *parent, SynchronizerDi
if (checkIfSelected && !selectedFiles.contains(left_file_name))
continue;
if (excludedPaths.contains(leftDir.isEmpty() ? left_file_name : leftDir + '/' + left_file_name))
// Exclude the left-side folder if it's inside the exclusion list
if (query->isExcluded(left_file->getUrl()))
continue;
if (!query->matchDirName(left_file_name))
......@@ -331,7 +332,8 @@ void Synchronizer::compareDirectory(SynchronizerFileItem *parent, SynchronizerDi
if (checkIfSelected && !selectedFiles.contains(file_name))
continue;
if (excludedPaths.contains(rightDir.isEmpty() ? file_name : rightDir + '/' + file_name))
// Exclude the right-side folder if it's inside the exclusion list
if (query->isExcluded(right_file->getUrl()))
continue;
if (!query->matchDirName(file_name))
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment