Add .sync-exclude.lst to exclude files
authorFelix Weilbach <felix.weilbach@nextcloud.com>
Mon, 11 Oct 2021 12:27:05 +0000 (14:27 +0200)
committerMatthieu Gallien (Rebase PR Action) <matthieu_gallien@yahoo.fr>
Thu, 14 Oct 2021 14:02:29 +0000 (14:02 +0000)
commita663d235efe668f3a1a915d9155c5e514bb25d0a
treead661c6f21c2bafd6aa2ee7e6569c22c8c6aea7a
parentf2811ea02729a65768ae1cd76b58accb39f3abef
Add .sync-exclude.lst to exclude files

Previously the .sync-exclude.lst file of the sync root directory was
not added to the exclude files, because the current logic did only
recognize .sync-exclude.lst files when their containing directory was
discovered during the discovery phase. Therefore the sync root
.sync-exclude.lst file was never discovered. See also
ExcludedFiles::traversalPatternMatch().

Fix: #3830, #2728

Signed-off-by: Felix Weilbach <felix.weilbach@nextcloud.com>
src/csync/csync_exclude.cpp
src/libsync/syncengine.cpp