From 88b39cb50d42993a179e285f555a77d5ba4a97e8 Mon Sep 17 00:00:00 2001 From: Claudio Cambra Date: Fri, 7 Jul 2023 19:15:54 +0800 Subject: [PATCH] Only attempt conversion to placeholder on new file if VFS enabled in SyncEngine::slotItemDiscovered Signed-off-by: Claudio Cambra --- src/libsync/syncengine.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/libsync/syncengine.cpp b/src/libsync/syncengine.cpp index e228d604abe8..c36748934ca4 100644 --- a/src/libsync/syncengine.cpp +++ b/src/libsync/syncengine.cpp @@ -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;