From 2c1c168fabba7324ad738dd1c3a034aae164c147 Mon Sep 17 00:00:00 2001 From: skilion Date: Sun, 12 Mar 2017 16:35:47 +0100 Subject: [PATCH] fix root dir skipped when searching for new files --- src/sync.d | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/src/sync.d b/src/sync.d index 7efb3337..4158d3a1 100644 --- a/src/sync.d +++ b/src/sync.d @@ -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)) {