diff --git a/src/libsync/discovery.cpp b/src/libsync/discovery.cpp index 23b743a46c6c2..dab666be98bb3 100644 --- a/src/libsync/discovery.cpp +++ b/src/libsync/discovery.cpp @@ -259,7 +259,7 @@ bool ProcessDirectoryJob::handleExcluded(const QString &path, const Entries &ent const auto fileName = path.mid(path.lastIndexOf('/') + 1); - if (excluded == CSYNC_NOT_EXCLUDED) { + if (excluded == CSYNC_NOT_EXCLUDED && Utility::isWindows()) { const auto endsWithSpace = fileName.endsWith(QLatin1Char(' ')); const auto startsWithSpace = fileName.startsWith(QLatin1Char(' ')); if (startsWithSpace && endsWithSpace) {