aboutsummaryrefslogtreecommitdiffstats
path: root/lib/private/files/view.php
diff options
context:
space:
mode:
Diffstat (limited to 'lib/private/files/view.php')
-rw-r--r--lib/private/files/view.php6
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/private/files/view.php b/lib/private/files/view.php
index a2717ce4321..6c720a6f5c0 100644
--- a/lib/private/files/view.php
+++ b/lib/private/files/view.php
@@ -527,7 +527,7 @@ class View {
fclose($target);
if ($result !== false) {
- $storage1->unlink($internalPath1);
+ $result &= $storage1->unlink($internalPath1);
}
}
}
@@ -537,7 +537,7 @@ class View {
if ($this->shouldEmitHooks()) {
$this->emit_file_hooks_post($exists, $path2);
}
- } elseif ($result !== false) {
+ } elseif ($result) {
$this->updater->rename($path1, $path2);
if ($this->shouldEmitHooks($path1) and $this->shouldEmitHooks($path2)) {
\OC_Hook::emit(
@@ -803,7 +803,7 @@ class View {
$result = \OC_FileProxy::runPostProxies($operation, $this->getAbsolutePath($path), $result);
- if (in_array('delete', $hooks)) {
+ if (in_array('delete', $hooks) and $result) {
$this->updater->remove($path);
}
if (in_array('write', $hooks)) {