From: Michael Gapczynski Date: Thu, 23 May 2013 14:23:16 +0000 (-0400) Subject: Switch to calling deleteAll via storage to avoid emitting delete hook X-Git-Tag: v6.0.0alpha2~745^2~1 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=3b6d850e592bbc6db9d67d25ee700c0730c84376;p=nextcloud-server.git Switch to calling deleteAll via storage to avoid emitting delete hook --- 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');