From ff9953b36b5644ec751682687f7257fe9cedfb2b Mon Sep 17 00:00:00 2001 From: Matthieu Gallien Date: Mon, 11 Mar 2024 14:57:24 +0100 Subject: [PATCH] make folder read-write before deleting it Signed-off-by: Matthieu Gallien --- src/libsync/propagatorjobs.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/src/libsync/propagatorjobs.cpp b/src/libsync/propagatorjobs.cpp index e016fd0652d84..41b253bb09874 100644 --- a/src/libsync/propagatorjobs.cpp +++ b/src/libsync/propagatorjobs.cpp @@ -60,6 +60,7 @@ bool PropagateLocalRemove::removeRecursively(const QString &path) QString absolute = propagator()->fullLocalPath(_item->_file + path); QStringList errors; QList> deleted; + FileSystem::setFolderPermissions(absolute, FileSystem::FolderPermissions::ReadWrite); bool success = FileSystem::removeRecursively( absolute, [&deleted](const QString &path, bool isDir) {