Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/owncloud/client.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHannah von Reth <hannah.vonreth@owncloud.com>2021-12-17 12:46:36 +0300
committerHannah von Reth <vonreth@kde.org>2021-12-17 18:28:37 +0300
commitf3d9a6ae9227b2edaa4b5c60e04c75e12e114c59 (patch)
tree6330d06840e0b8e4327dab118799beff11c6a5d7 /src/gui/socketapi
parentbceac219ce5d47beaa9a35bd64187d0edd63816c (diff)
Handle locks in recursive delete
Diffstat (limited to 'src/gui/socketapi')
-rw-r--r--src/gui/socketapi/socketapi.cpp5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/gui/socketapi/socketapi.cpp b/src/gui/socketapi/socketapi.cpp
index 97b3b4bb5..57367049f 100644
--- a/src/gui/socketapi/socketapi.cpp
+++ b/src/gui/socketapi/socketapi.cpp
@@ -796,7 +796,10 @@ void SocketApi::command_DELETE_ITEM(const QString &localFile, SocketListener *)
return;
if (info.isDir()) {
- FileSystem::removeRecursively(localFile);
+ FileSystem::RemoveEntryList removed;
+ FileSystem::RemoveEntryList locked;
+ FileSystem::RemoveErrorList errors;
+ FileSystem::removeRecursively(localFile, &removed, &locked, &errors);
} else {
QFile(localFile).remove();
}