If a sync_list exclusion is matched, the item needs to be excluded when using --resync (#1820)

* If a sync_list exclusion is matched, the item needs to be excluded when using --resync
This commit is contained in:
abraunegg 2022-01-31 10:13:19 +11:00 committed by GitHub
parent 1ac5d87d98
commit e1faa90351
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -373,6 +373,11 @@ private bool isPathExcluded(string path, string[] allowedPaths)
log.vdebug("[F]exclude = ", exclude);
log.vdebug("[F]excludeMatched = ", excludeMatched);
// If exclude or excludeMatched is true, then finalResult has to be true
if ((exclude) || (excludeMatched)) {
finalResult = true;
}
// results
if (finalResult) {
log.vdebug("Evaluation against 'sync_list' final result: EXCLUDED");