]> dgit.raspbian.org Git - nextcloud-desktop.git/commitdiff
Only attempt conversion to placeholder on new file if VFS enabled in SyncEngine:...
authorClaudio Cambra <claudio.cambra@nextcloud.com>
Fri, 7 Jul 2023 11:15:54 +0000 (19:15 +0800)
committerClaudio Cambra <claudio.cambra@nextcloud.com>
Mon, 7 Aug 2023 08:25:19 +0000 (16:25 +0800)
Signed-off-by: Claudio Cambra <claudio.cambra@nextcloud.com>
src/libsync/syncengine.cpp

index 33156e909a32432a48d3f0238e119a445f95a4bf..56af0770f628eeb5a4747370dd719cea3198c0ae 100644 (file)
@@ -375,7 +375,7 @@ void OCC::SyncEngine::slotItemDiscovered(const OCC::SyncFileItemPtr &item)
             rec._serverHasIgnoredFiles |= prev._serverHasIgnoredFiles;
 
             // Ensure it's a placeholder file on disk
-            if (item->_type == ItemTypeFile) {
+            if (item->_type == ItemTypeFile && _syncOptions._vfs->mode() != Vfs::Off) {
                 const auto result = _syncOptions._vfs->convertToPlaceholder(filePath, *item);
                 if (!result) {
                     item->_status = SyncFileItem::Status::NormalError;