From b00a5934c912ce02e5d4b88ea7f0a4a607b85ea2 Mon Sep 17 00:00:00 2001 From: Claudio Cambra Date: Mon, 17 Jun 2024 23:40:28 +0800 Subject: [PATCH] Allow deletion of virtual suffix placeholder files Signed-off-by: Claudio Cambra --- src/libsync/discovery.cpp | 8 -------- 1 file changed, 8 deletions(-) diff --git a/src/libsync/discovery.cpp b/src/libsync/discovery.cpp index 1e276ad689..dfcb37d290 100644 --- a/src/libsync/discovery.cpp +++ b/src/libsync/discovery.cpp @@ -1085,14 +1085,6 @@ void ProcessDirectoryJob::processFileAnalyzeLocalInfo( qCWarning(lcDisco) << "Failed to delete a file record from the local DB" << path._original; } return; - } else if (dbEntry._type == ItemTypeVirtualFile && isVfsWithSuffix()) { - // If the virtual file is removed, recreate it. - // This is a precaution since the suffix files don't look like the real ones - // and we don't want users to accidentally delete server data because they - // might not expect that deleting the placeholder will have a remote effect. - item->_instruction = CSYNC_INSTRUCTION_NEW; - item->_direction = SyncFileItem::Down; - item->_type = ItemTypeVirtualFile; } else if (!serverModified) { // Removed locally: also remove on the server. if (!dbEntry._serverHasIgnoredFiles) {