From 3b6d850e592bbc6db9d67d25ee700c0730c84376 Mon Sep 17 00:00:00 2001
From: Michael Gapczynski <mtgap@owncloud.com>
Date: Thu, 23 May 2013 10:23:16 -0400
Subject: [PATCH] Switch to calling deleteAll via storage to avoid emitting
 delete hook

---
 lib/files/view.php | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/lib/files/view.php b/lib/files/view.php
index 8a37a0bcc6..d0d473766c 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');
-- 
GitLab