Merge pull request #3486 from nextcloud/bugfix/improveInvalidFileNameMessage

improve error message in case of trailing space in directory name
This commit is contained in:
Matthieu Gallien 2021-07-02 13:00:05 +02:00 committed by GitHub
commit f42639e6ce
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -282,9 +282,11 @@ bool ProcessDirectoryJob::handleExcluded(const QString &path, const QString &loc
break;
case CSYNC_FILE_EXCLUDE_TRAILING_SPACE:
item->_errorString = tr("Filename contains trailing spaces.");
item->_status = SyncFileItem::FileNameInvalid;
break;
case CSYNC_FILE_EXCLUDE_LONG_FILENAME:
item->_errorString = tr("Filename is too long.");
item->_status = SyncFileItem::FileNameInvalid;
break;
case CSYNC_FILE_EXCLUDE_HIDDEN:
item->_errorString = tr("File/Folder is ignored because it's hidden.");