fix root dir skipped when searching for new files

This commit is contained in:
skilion 2017-03-12 16:35:47 +01:00
parent 9dd944286f
commit 2c1c168fab

View file

@ -472,11 +472,13 @@ final class SyncEngine
}
// skip filtered items
if (!baseName(path).matchFirst(skipFile).empty) {
return;
}
if (isPathExcluded(path, selectiveSyncPaths)) {
return;
if (path != ".") {
if (!baseName(path).matchFirst(skipFile).empty) {
return;
}
if (isPathExcluded(path, selectiveSyncPaths)) {
return;
}
}
if (isDir(path)) {