make folder read-write before deleting it
authorMatthieu Gallien <matthieu.gallien@nextcloud.com>
Mon, 11 Mar 2024 13:57:24 +0000 (14:57 +0100)
committerMatthieu Gallien <matthieu_gallien@yahoo.fr>
Tue, 12 Mar 2024 22:30:02 +0000 (23:30 +0100)
Signed-off-by: Matthieu Gallien <matthieu.gallien@nextcloud.com>
src/libsync/propagatorjobs.cpp

index e016fd0652d8449acf1dc9e9af4bc9d00b267884..41b253bb0987444f7ddc1b2d3473abed1b77539b 100644 (file)
@@ -60,6 +60,7 @@ bool PropagateLocalRemove::removeRecursively(const QString &path)
     QString absolute = propagator()->fullLocalPath(_item->_file + path);
     QStringList errors;
     QList<QPair<QString, bool>> deleted;
+    FileSystem::setFolderPermissions(absolute, FileSystem::FolderPermissions::ReadWrite);
     bool success = FileSystem::removeRecursively(
         absolute,
         [&deleted](const QString &path, bool isDir) {