aboutsummaryrefslogtreecommitdiffstats
path: root/lib/private/files/storage
diff options
context:
space:
mode:
Diffstat (limited to 'lib/private/files/storage')
-rw-r--r--lib/private/files/storage/common.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/private/files/storage/common.php b/lib/private/files/storage/common.php
index 164225de3e8..ca898bcc0b3 100644
--- a/lib/private/files/storage/common.php
+++ b/lib/private/files/storage/common.php
@@ -566,9 +566,9 @@ abstract class Common implements Storage {
$result = $this->copyFromStorage($sourceStorage, $sourceInternalPath, $targetInternalPath, true);
if ($result) {
if ($sourceStorage->is_dir($sourceInternalPath)) {
- $sourceStorage->rmdir($sourceInternalPath);
+ $result &= $sourceStorage->rmdir($sourceInternalPath);
} else {
- $sourceStorage->unlink($sourceInternalPath);
+ $result &= $sourceStorage->unlink($sourceInternalPath);
}
}
return $result;