summaryrefslogtreecommitdiffstats
path: root/lib/files
diff options
context:
space:
mode:
authorMichael Gapczynski <mtgap@owncloud.com>2013-05-23 10:23:16 -0400
committerMichael Gapczynski <mtgap@owncloud.com>2013-05-23 10:23:16 -0400
commit3b6d850e592bbc6db9d67d25ee700c0730c84376 (patch)
tree1d91925928faac27fcf7a8ddbd8a573ca6988476 /lib/files
parent09ff46eda2a538d4f7a41b7f71ebf0e7df8944f2 (diff)
downloadnextcloud-server-3b6d850e592bbc6db9d67d25ee700c0730c84376.tar.gz
nextcloud-server-3b6d850e592bbc6db9d67d25ee700c0730c84376.zip
Switch to calling deleteAll via storage to avoid emitting delete hook
Diffstat (limited to 'lib/files')
-rw-r--r--lib/files/view.php3
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/files/view.php b/lib/files/view.php
index 8a37a0bcc62..d0d473766cc 100644
--- a/lib/files/view.php
+++ b/lib/files/view.php
@@ -375,7 +375,8 @@ class View {
if ($this->is_dir($path1)) {
$result = $this->copy($path1, $path2);
if ($result === true) {
- $result = $this->deleteAll($path1);
+ list($storage1, $internalPath1) = Filesystem::resolvePath($absolutePath1 . $postFix1);
+ $result = $storage1->deleteAll($internalPath1);
}
} else {
$source = $this->fopen($path1 . $postFix1, 'r');