Skip to content

Commit

Permalink
Only check trailing space for files/folders on Windows.
Browse files Browse the repository at this point in the history
Fix for #6807.

Signed-off-by: Camila Ayres <[email protected]>
  • Loading branch information
camilasan committed Jul 9, 2024
1 parent b5c683f commit 750aaca
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/libsync/discovery.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down

0 comments on commit 750aaca

Please sign in to comment.