mirror of
https://github.com/nextcloud/desktop.git
synced 2025-10-26 11:17:43 +00:00
SyncOptions: Add default placeholder suffix
Otherwise each test has to set this up anew.
This commit is contained in:
parent
c2f84d7c3e
commit
fb3e3edcbd
@ -851,6 +851,12 @@ void SyncEngine::startSync()
|
||||
|
||||
_csync_ctx->new_files_are_placeholders = _syncOptions._newFilesArePlaceholders;
|
||||
_csync_ctx->placeholder_suffix = _syncOptions._placeholderSuffix.toUtf8();
|
||||
if (_csync_ctx->new_files_are_placeholders && _csync_ctx->placeholder_suffix.isEmpty()) {
|
||||
csyncError(tr("Using placeholder files, but placeholder suffix is not set"));
|
||||
finalize(false);
|
||||
return;
|
||||
}
|
||||
|
||||
bool ok;
|
||||
auto selectiveSyncBlackList = _journal->getSelectiveSyncList(SyncJournalDb::SelectiveSyncBlackList, &ok);
|
||||
if (ok) {
|
||||
|
||||
@ -38,7 +38,7 @@ struct SyncOptions
|
||||
|
||||
/** Create a placeholder for new files instead of downloading */
|
||||
bool _newFilesArePlaceholders = false;
|
||||
QString _placeholderSuffix;
|
||||
QString _placeholderSuffix = ".owncloud";
|
||||
|
||||
/** The initial un-adjusted chunk size in bytes for chunked uploads, both
|
||||
* for old and new chunking algorithm, which classifies the item to be chunked
|
||||
|
||||
Loading…
Reference in New Issue
Block a user